manu
4 years ago
committed by
Zar21
4 changed files with 69 additions and 63 deletions
-
28partner_contact_address_default/__manifest__.py
-
12partner_contact_address_default/models/res_partner.py
-
53partner_contact_address_default/tests/test_partner_contact_address_default.py
-
39partner_contact_address_default/views/res_partner_views.xml
@ -1,40 +1,55 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<odoo> |
<odoo> |
||||
|
|
||||
<record id="view_partner_form" model="ir.ui.view"> |
<record id="view_partner_form" model="ir.ui.view"> |
||||
<field name="model">res.partner</field> |
<field name="model">res.partner</field> |
||||
<field name="inherit_id" ref="base.view_partner_form"/> |
|
||||
|
<field name="inherit_id" ref="base.view_partner_form" /> |
||||
<field name="arch" type="xml"> |
<field name="arch" type="xml"> |
||||
<xpath expr="//field[@name='child_ids']" position="before"> |
<xpath expr="//field[@name='child_ids']" position="before"> |
||||
<group> |
<group> |
||||
<group> |
<group> |
||||
<field name="partner_delivery_id" domain="[('id', 'child_of', commercial_partner_id)]"/> |
|
||||
|
<field |
||||
|
name="partner_delivery_id" |
||||
|
domain="[('id', 'child_of', commercial_partner_id)]" |
||||
|
/> |
||||
</group> |
</group> |
||||
<group> |
<group> |
||||
<field name="partner_invoice_id" domain="[('id', 'child_of', commercial_partner_id)]"/> |
|
||||
|
<field |
||||
|
name="partner_invoice_id" |
||||
|
domain="[('id', 'child_of', commercial_partner_id)]" |
||||
|
/> |
||||
</group> |
</group> |
||||
</group> |
</group> |
||||
</xpath> |
</xpath> |
||||
<xpath expr="//field[@name='child_ids']//form//group" position="after"> |
<xpath expr="//field[@name='child_ids']//form//group" position="after"> |
||||
<group string="Force addresses" attrs="{'invisible': [('type', '=', 'private')]}"> |
|
||||
|
<group |
||||
|
string="Force addresses" |
||||
|
attrs="{'invisible': [('type', '=', 'private')]}" |
||||
|
> |
||||
<group colspan="4"> |
<group colspan="4"> |
||||
<field name="commercial_partner_id" invisible="1"/> |
|
||||
|
<field name="commercial_partner_id" invisible="1" /> |
||||
<div class="oe_grey"> |
<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 Odoo's behavior will be normal</div> |
|
||||
|
<div |
||||
|
>You can force and delivery and invoice address for this contacts.</div> |
||||
|
<div |
||||
|
>If you keep empty this fields the Odoo's behavior will be normal</div> |
||||
</div> |
</div> |
||||
</group> |
</group> |
||||
<group colspan="4"> |
<group colspan="4"> |
||||
<group> |
<group> |
||||
<field name="partner_delivery_id" domain="[('id', 'child_of', commercial_partner_id)]"/> |
|
||||
|
<field |
||||
|
name="partner_delivery_id" |
||||
|
domain="[('id', 'child_of', commercial_partner_id)]" |
||||
|
/> |
||||
</group> |
</group> |
||||
<group> |
<group> |
||||
<field name="partner_invoice_id" domain="[('id', 'child_of', commercial_partner_id)]"/> |
|
||||
|
<field |
||||
|
name="partner_invoice_id" |
||||
|
domain="[('id', 'child_of', commercial_partner_id)]" |
||||
|
/> |
||||
</group> |
</group> |
||||
</group> |
</group> |
||||
</group> |
</group> |
||||
</xpath> |
</xpath> |
||||
</field> |
</field> |
||||
</record> |
</record> |
||||
|
|
||||
</odoo> |
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue