Web Widget Color
by Contaura LLC
· original work by Savoir-faire Linux, Anybox, Taktik SA, Sudokeys, Tecnativa, OCA
web_widget_color
$ 29.00
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 name | web_widget_color |
|---|---|
| Module version | 12.0.1.0.1 |
| Tulio versions | 1.0 |
| Category | Tools |
| Publisher | Contaura LLC
Ported to Tulio, tested and supported by Contaura LLC. |
| Original authors | Savoir-faire Linux, Anybox, Taktik SA, Sudokeys, Tecnativa, OCA |
| License | AGPL-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 code | 123 |
| Downloads | 0 |
| Released | 12/06/2026 |