[IMP] web: m2m_tags support _rec_name != 'name'
Currently, the m2m tags widget would only display the name present in the "name" field. This prevent them from being used with custom fields/models and other niceties. opw-658490
This commit is contained in:
@@ -826,7 +826,7 @@
|
||||
<t t-set="i" t-value="0"/>
|
||||
<t t-foreach="elements" t-as="el">
|
||||
<span t-attf-class="badge dropdown #{'o_tag_color_' + (el['color'] || 0)}" t-att-data-color="(el['color'] || 0)" t-att-data-index="i" t-att-data-id="el['id']">
|
||||
<t t-esc="el['name']"/>
|
||||
<t t-esc="el['display_name']"/>
|
||||
<span t-if="!readonly" class="fa fa-times o_delete"/>
|
||||
</span>
|
||||
<t t-set="i" t-value="i + 1"/>
|
||||
|
||||
Reference in New Issue
Block a user