partner-contact/partner_academic_title/views/res_partner_view.xml
2021-03-23 20:36:29 +01:00

22 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015-2017 ACSONE SA/NV
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<flectra>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">res.partner.form (partner_academic_title)</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='title']" position="after">
<label for="academic_title_ids" class="oe_edit_only"/>
<field name="academic_title_ids" widget="many2many_tags"
placeholder="Academic Titles" nolabel="1" class="oe_edit_only"
attrs="{'invisible': [('is_company', '=', True)]}" />
<label for="academic_title_display" class="oe_read_only"/>
<field name="academic_title_display" nolabel="1" class="oe_read_only"
attrs="{'invisible': [('is_company', '=', True)]}" />
</xpath>
</field>
</record>
</flectra>