[FIX] purchase_stock: display form view

Since the split of stock and purchase, some
field are badly displayed on PO form view.
This is due to a bad xpath. This commits
fixes the issue.
This commit is contained in:
jem-odoo
2018-06-05 14:55:13 +02:00
parent 279d928693
commit 09658b041a
@@ -30,7 +30,7 @@
<xpath expr="//field[@name='order_line']/tree//field[@name='qty_received']" position="attributes">
<attribute name="attrs">{'column_invisible': [('parent.state', 'not in', ('purchase', 'done'))], 'readonly': [('product_type', 'in', ('consu', 'product'))]}</attribute>
</xpath>
<xpath expr="//page[@name='purchase_delivery_invoice']/group" position="inside">
<xpath expr="//page[@name='purchase_delivery_invoice']/group/group" position="inside">
<field name="picking_type_id" domain="[('code','=','incoming')]" options="{'no_create': True}" groups="stock.group_stock_multi_locations"/>
<field name="dest_address_id" groups="stock.group_stock_multi_locations" attrs="{'invisible': [('default_location_dest_id_usage', '!=', 'customer')], 'required': [('default_location_dest_id_usage', '=', 'customer')]}"/>
<field name="default_location_dest_id_usage" invisible="1"/>