mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-11-15 02:32:04 +00:00
31 lines
1.2 KiB
XML
31 lines
1.2 KiB
XML
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
<flectra>
|
||
|
<record id="view_partner_form" model="ir.ui.view">
|
||
|
<field name="name">res.partner.zip_id.2</field>
|
||
|
<field name="model">res.partner</field>
|
||
|
<field name="inherit_id" ref="base.view_partner_form" />
|
||
|
<field name="arch" type="xml">
|
||
|
<field name="city" position="before">
|
||
|
<field
|
||
|
name="zip_id"
|
||
|
options="{'create_name_field': 'city', 'no_open': True, 'no_create': True}"
|
||
|
placeholder="Location completion"
|
||
|
class="oe_edit_only"
|
||
|
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"
|
||
|
/>
|
||
|
</field>
|
||
|
<xpath
|
||
|
expr="//field[@name='child_ids']/form//field[@name='city']"
|
||
|
position="before"
|
||
|
>
|
||
|
<field
|
||
|
name="zip_id"
|
||
|
options="{'create_name_field': 'city', 'no_open': True, 'no_create': True}"
|
||
|
placeholder="City completion"
|
||
|
class="oe_edit_only"
|
||
|
/>
|
||
|
</xpath>
|
||
|
</field>
|
||
|
</record>
|
||
|
</flectra>
|