|
|
@ -9,13 +9,15 @@ |
|
|
|
<group> |
|
|
|
<field |
|
|
|
name="partner_delivery_id" |
|
|
|
domain="[('id', 'child_of', commercial_partner_id)]" |
|
|
|
domain="[('id', 'child_of', commercial_partner_id), ('type', '=', 'delivery')]" |
|
|
|
widget="selection" |
|
|
|
/> |
|
|
|
</group> |
|
|
|
<group> |
|
|
|
<field |
|
|
|
name="partner_invoice_id" |
|
|
|
domain="[('id', 'child_of', commercial_partner_id)]" |
|
|
|
domain="[('id', 'child_of', commercial_partner_id), ('type', '=', 'invoice')]" |
|
|
|
widget="selection" |
|
|
|
/> |
|
|
|
</group> |
|
|
|
</group> |
|
|
@ -23,7 +25,7 @@ |
|
|
|
<xpath expr="//field[@name='child_ids']//form//group" position="after"> |
|
|
|
<group |
|
|
|
string="Force addresses" |
|
|
|
attrs="{'invisible': [('type', '=', 'private')]}" |
|
|
|
attrs="{'invisible': [('type', '!=', 'contact')]}" |
|
|
|
> |
|
|
|
<group colspan="4"> |
|
|
|
<field name="commercial_partner_id" invisible="1" /> |
|
|
@ -35,18 +37,16 @@ |
|
|
|
</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> |
|
|
|
<field |
|
|
|
name="partner_delivery_id" |
|
|
|
domain="[('id', 'child_of', commercial_partner_id), ('type', '=', 'delivery')]" |
|
|
|
/> |
|
|
|
</group> |
|
|
|
<group colspan="4"> |
|
|
|
<field |
|
|
|
name="partner_invoice_id" |
|
|
|
domain="[('id', 'child_of', commercial_partner_id), ('type', '=', 'invoice')]" |
|
|
|
/> |
|
|
|
</group> |
|
|
|
</group> |
|
|
|
</xpath> |
|
|
|