| 1 |
<odoo> |
| 2 |
<record id="view_purchase_order_inherit" model="ir.ui.view"> |
| 3 |
<field name="name">Purchase Order Inherit Dropship Subcontractor</field> |
| 4 |
<field name="model">purchase.order</field> |
| 5 |
<field name="inherit_id" ref="purchase.purchase_order_form"/> |
| 6 |
<field name="arch" type="xml"> |
| 7 |
<field name="dest_address_id" position="before"> |
| 8 |
<field name="default_location_dest_id_is_subcontracting_loc" invisible="1"/> |
| 9 |
</field> |
| 10 |
<field name="dest_address_id" position="attributes"> |
| 11 |
<attribute name="invisible">default_location_dest_id_usage != 'customer' and not default_location_dest_id_is_subcontracting_loc</attribute> |
| 12 |
<attribute name="required">default_location_dest_id_usage == 'customer' or default_location_dest_id_is_subcontracting_loc</attribute> |
| 13 |
</field> |
| 14 |
</field> |
| 15 |
</record> |
| 16 |
</odoo> |