diff options
| author | Martin Geubelle <mge@odoo.com> | 2017-07-06 11:07:15 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2017-07-07 13:40:50 +0200 |
| commit | 5241d479b222bc11ebd1c0ff41c38872a3fea8fd (patch) | |
| tree | ce3fc07718a043591630dfb297ea13222dc00770 /addons/note/views | |
| parent | a29f7f671bc79855136dda64ae0725c564a9c3d2 (diff) | |
[FIX] *: add color option on m2m_tags widgets in kanban
There is a bit of magic in the kanban with many2many: the widget many2many_tags
is automatically set on many2many fields.
Since the previous commit, the `color_field` needs to be explicitly stated
in the options for the tags to be colored.
In kanban views where tags were previously colored, we thus have specified the
widget and the color option.
Diffstat (limited to 'addons/note/views')
| -rw-r--r-- | addons/note/views/note_views.xml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/note/views/note_views.xml b/addons/note/views/note_views.xml index 347b66220d2..9c6a4087a28 100644 --- a/addons/note/views/note_views.xml +++ b/addons/note/views/note_views.xml @@ -87,7 +87,6 @@ <field name="memo"/> <field name="date_done"/> <field name="message_partner_ids"/> - <field name="tag_ids"/> <field name="activity_ids" /> <field name="activity_state" /> <templates> @@ -95,7 +94,7 @@ <div t-attf-class="#{kanban_color(record.color.raw_value)} oe_kanban_global_click_edit oe_semantic_html_override oe_kanban_card"> - <field name="tag_ids"/> + <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/> <div class="o_dropdown_kanban dropdown"> <a class="dropdown-toggle btn" data-toggle="dropdown" href="#" > |
