Web Widget Color

Web Widget Color

by Contaura LLC · original work by Savoir-faire Linux, Anybox, Taktik SA, Sudokeys, Tecnativa, OCA
web_widget_color
$ 29.00

1.0

One purchase covers every version. Already bought it? Sign in.

Web Widget Color

This module aims to add a color picker to Tulio.

It’s a jsColor lib integration.

Features

  • The picker allow the user to quickly select a color on edit mode

    Note

    Notice how html code and the background color is updating when selecting a color.

  • Display the color on form view when you are not editing it

  • Display the color on list view to quickly find what’s wrong!

Table of contents

Usage

You need to declare a char field:

color = fields.Char(
    string="Color",
    help="Choose your color"
)

In the view declaration, put widget=’color’ attribute in the field tag:

...
<field name="arch" type="xml">
    <tree string="View name">
        ...
        <field name="color" widget="color"/>
        ...
    </tree>
</field>
...
<field name="arch" type="xml">
    <form string="View name">
        ...
        <field name="color" widget="color"/>
        ...
    </form>
</field>
...

Widget Options:

- readonly_mode
    - 'default' > Color Box + text
    - 'color' > Only Color Box
    - 'text' > Only Text
...
<field name="arch" type="xml">
    <tree string="View name">
        ...
        <field name="color" widget="color" options="{'readonly_mode': 'color'}"/>
        ...
    </tree>
</field>
...
Technical nameweb_widget_color
Module version12.0.1.0.1
Tulio versions1.0
CategoryTools
PublisherContaura LLC
Ported to Tulio, tested and supported by Contaura LLC.
Original authorsSavoir-faire Linux, Anybox, Taktik SA, Sudokeys, Tecnativa, OCA
LicenseAGPL-3
Open source: you may use, change and share this module under its license. The price covers the Tulio port, its testing on Tulio 1.0 and the download.
Requires (Tulio core)web
Lines of code123
Downloads0
Released12/06/2026
12.0.1.0.1 Tulio 1.0 · 12/06/2026