mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-11-15 02:32:04 +00:00
56 lines
2.3 KiB
XML
56 lines
2.3 KiB
XML
|
<?xml version="1.0" encoding="utf-8" ?>
|
||
|
<flectra>
|
||
|
<record id="view_partner_form" model="ir.ui.view">
|
||
|
<field name="model">res.partner</field>
|
||
|
<field name="inherit_id" ref="base.view_partner_form" />
|
||
|
<field name="arch" type="xml">
|
||
|
<xpath expr="//field[@name='child_ids']" position="before">
|
||
|
<group>
|
||
|
<group>
|
||
|
<field
|
||
|
name="partner_delivery_id"
|
||
|
domain="[('id', 'child_of', commercial_partner_id)]"
|
||
|
/>
|
||
|
</group>
|
||
|
<group>
|
||
|
<field
|
||
|
name="partner_invoice_id"
|
||
|
domain="[('id', 'child_of', commercial_partner_id)]"
|
||
|
/>
|
||
|
</group>
|
||
|
</group>
|
||
|
</xpath>
|
||
|
<xpath expr="//field[@name='child_ids']//form//group" position="after">
|
||
|
<group
|
||
|
string="Force addresses"
|
||
|
attrs="{'invisible': [('type', '=', 'private')]}"
|
||
|
>
|
||
|
<group colspan="4">
|
||
|
<field name="commercial_partner_id" invisible="1" />
|
||
|
<div class="oe_grey">
|
||
|
<div
|
||
|
>You can force and delivery and invoice address for this contacts.</div>
|
||
|
<div
|
||
|
>If you keep empty this fields the Flectra's behavior will be normal</div>
|
||
|
</div>
|
||
|
</group>
|
||
|
<group colspan="4">
|
||
|
<group>
|
||
|
<field
|
||
|
name="partner_delivery_id"
|
||
|
domain="[('id', 'child_of', commercial_partner_id)]"
|
||
|
/>
|
||
|
</group>
|
||
|
<group>
|
||
|
<field
|
||
|
name="partner_invoice_id"
|
||
|
domain="[('id', 'child_of', commercial_partner_id)]"
|
||
|
/>
|
||
|
</group>
|
||
|
</group>
|
||
|
</group>
|
||
|
</xpath>
|
||
|
</field>
|
||
|
</record>
|
||
|
</flectra>
|