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.
17 lines
785 B
XML
17 lines
785 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Add partner categories in partner kanban view -->
|
|
<record id="res_partner_kanban_view" model="ir.ui.view">
|
|
<field name="name">res.partner.kanban.inherit</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.res_partner_kanban_view"/>
|
|
<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" widget="many2many_tags" options="{'color_field': 'color'}"/>
|
|
</span>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|