summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2018-06-05 14:55:06 +0200
committerjem-odoo <jem@openerp.com>2018-06-05 14:55:13 +0200
commit09658b041a2a2f89c00ad3375edb2f30f04724a8 (patch)
tree05a776cd92c8d5accd239bf5b0d337a7eaf0c0af
parent279d92869391ac9f860d2070a7b92693fffee687 (diff)
[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.
-rw-r--r--addons/purchase_stock/views/purchase_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/purchase_stock/views/purchase_views.xml b/addons/purchase_stock/views/purchase_views.xml
index f7d9848f294..92330f01d22 100644
--- a/addons/purchase_stock/views/purchase_views.xml
+++ b/addons/purchase_stock/views/purchase_views.xml
@@ -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"/>