Files
Odoo-Build/snippets/base.contact_name.modify_name.xml
T
2025-05-15 10:49:35 +02:00

25 lines
928 B
XML

<data inherit_id="base.contact_name" priority="50">
<xpath expr="//div" position="replace">
<t t-if="object.parent_name">
<div t-esc="object.parent_name"/>
<!--
<div t-esc="object.parent_id.name2"/>
-->
<span t-field="object.title"/>
<span t-esc="object.name"/>
<!--
<div t-esc="object.department"/>
-->
</t>
<t t-if="not object.parent_name">
<div t-esc="object.name"/>
<!--
<span t-esc="object.name2"/>
-->
</t>
<t t-if="options.get('country_image') and 'country_id' in fields and object.country_id and object.country_id.image_url">
<span t-field="object.country_id.image_url" t-options="{&quot;widget&quot;: &quot;image_url&quot;, &quot;class&quot;: &quot;country_flag&quot;}"/>
</t>
</xpath>
</data>