summaryrefslogtreecommitdiff
path: root/addons/website_customer/views
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2017-07-06 14:56:42 +0200
committerMartin Geubelle <mge@odoo.com>2017-07-07 13:40:50 +0200
commita29f7f671bc79855136dda64ae0725c564a9c3d2 (patch)
tree30520f266fa2bc738fb9b9fecdbc8b3b2f72a969 /addons/website_customer/views
parente26ccdd0b6cc448af26b65a160e3329c4a1e7910 (diff)
[FIX] *: explicit `color_field` attribute for m2m_tags
Since the previous commit, the `color_field` needs to be explicitly stated in the options for the tags to be colored. The previous behaviour (always read the field `color`) was leading to server warnings if the field was not present on the comodel. Thìs commit set the `color_field´ for every many2many_tags on fields that have a `color` field on the comodel.
Diffstat (limited to 'addons/website_customer/views')
-rw-r--r--addons/website_customer/views/res_partner_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_customer/views/res_partner_views.xml b/addons/website_customer/views/res_partner_views.xml
index 69c59989879..a756453c4f6 100644
--- a/addons/website_customer/views/res_partner_views.xml
+++ b/addons/website_customer/views/res_partner_views.xml
@@ -7,7 +7,7 @@
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='company_id']" position="after">
- <field name="website_tag_ids" widget="many2many_tags" string="Website Tags"/>
+ <field name="website_tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" string="Website Tags"/>
</xpath>
</data>
</field>