summaryrefslogtreecommitdiff
path: root/addons/note
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/note
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/note')
-rw-r--r--addons/note/views/note_views.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/note/views/note_views.xml b/addons/note/views/note_views.xml
index aee385698f5..347b66220d2 100644
--- a/addons/note/views/note_views.xml
+++ b/addons/note/views/note_views.xml
@@ -143,7 +143,7 @@
<field name="name"/>
<field name="open"/>
<field name="stage_id"/>
- <field name="tag_ids" widget="many2many_tags"/>
+ <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
</tree>
</field>
</record>
@@ -158,7 +158,7 @@
<field name="stage_id" domain="[('user_id','=',uid)]" widget="statusbar" clickable="1"/>
</header>
<sheet>
- <field name="tag_ids" widget="many2many_tags" placeholder="Tags"/>
+ <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}" placeholder="Tags"/>
<field name="memo" widget="html" class="oe_memo" editor_height="450px" />
</sheet>
<div class="oe_chatter">