Hi,
I need a field to select a color. I would know if there is a widget="color" to pickup a color.
I searched, but I didn't find in the framework. (I'm using 7.0 serie)
Thanks for your answer.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I need a field to select a color. I would know if there is a widget="color" to pickup a color.
I searched, but I didn't find in the framework. (I'm using 7.0 serie)
Thanks for your answer.
Thanks !
Good feature, I didn't know. But it wasn't what I was looking. I was looking for :
For your information, to do what Mariusz Mizgier said :
In the python file (like in project/project.py) :
_columns = {
'my_color_field': fields.integer('My Color Field'),}
In the kanban view (like in project/project_view.xml) :
<ul class="oe_kanban_colorpicker" data-field="my_color_field"/>
It's possible to pickup 10 different colors defined in the two following files :
number_of_color_schemes = 10
.openerp .oe_kanban_view .oe_kanban_color_0 {background-color: white;}
.openerp .oe_kanban_view .oe_kanban_color_9 {background-color: #ffc7f1;}
You should refer to class oe_kanban_colorpicker with table column color of type integer. You could easily trace how does it work using project kanban view.
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
0
Aug. 25
|
2560 | ||
|
0
Jan. 23
|
1875 | ||
|
2
März 21
|
4469 | ||
|
0
Aug. 20
|
2292 | ||
|
2
März 15
|
4438 |