summaryrefslogtreecommitdiff
path: root/addons/base_setup
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2017-07-06 11:07:15 +0200
committerMartin Geubelle <mge@odoo.com>2017-07-07 13:40:50 +0200
commit5241d479b222bc11ebd1c0ff41c38872a3fea8fd (patch)
treece3fc07718a043591630dfb297ea13222dc00770 /addons/base_setup
parenta29f7f671bc79855136dda64ae0725c564a9c3d2 (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/base_setup')
-rw-r--r--addons/base_setup/views/res_partner_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/base_setup/views/res_partner_views.xml b/addons/base_setup/views/res_partner_views.xml
index 9eef80f6539..2fd1658d825 100644
--- a/addons/base_setup/views/res_partner_views.xml
+++ b/addons/base_setup/views/res_partner_views.xml
@@ -8,7 +8,7 @@
<field name="arch" type="xml">
<xpath expr="//div[contains(@class, 'oe_kanban_partner_categories')]" position="inside">
<span class="oe_kanban_list_many2many">
- <field name="category_id"/>
+ <field name="category_id" widget="many2many_tags" options="{'color_field': 'color'}"/>
</span>
</xpath>
</field>