From 595216b130e455587ede2f22a4c7eab3a99e5064 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 7 Jul 2015 11:19:18 +0200 Subject: [PATCH] [FIX] sale_stock: restore clean inheritance Inheritance with position=attributes has been introduced at bf70bde346 but was screwed up during conflict resolution of merges and lost some inheritance or got the one on product_id to be duplicated. Set inheritance with position=attributes everywhere. Add comments to explain when product_uos should be kept or not. --- addons/sale_stock/sale_stock_view.xml | 49 ++++++++++++++++----------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/addons/sale_stock/sale_stock_view.xml b/addons/sale_stock/sale_stock_view.xml index bb3ddda3e88..395b5d816bd 100644 --- a/addons/sale_stock/sale_stock_view.xml +++ b/addons/sale_stock/sale_stock_view.xml @@ -33,27 +33,36 @@ - - - - - - - - - - - product_id_change_with_wh(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,False,name,parent.partner_id, False, False, parent.date_order, product_packaging, parent.fiscal_position, True, parent.warehouse_id, context) + + + product_id_change_with_wh( + parent.pricelist_id, product_id, product_uom_qty, False, product_uos_qty, False, name, + parent.partner_id, False, True, parent.date_order, product_packaging, parent.fiscal_position, + False, parent.warehouse_id, context) + + + + product_id_change_with_wh( + parent.pricelist_id, product_id, product_uom_qty, False, product_uos_qty, False, name, + parent.partner_id, False, True, parent.date_order, product_packaging, parent.fiscal_position, + False, parent.warehouse_id, context) + + + + product_id_change_with_wh( + parent.pricelist_id, product_id, product_uom_qty, False, product_uos_qty, product_uos, name, + parent.partner_id, False, True, parent.date_order, product_packaging, parent.fiscal_position, + False, parent.warehouse_id, context) + + + + product_id_change_with_wh( + parent.pricelist_id, product_id, product_uom_qty, product_uom, product_uos_qty, False, name, + parent.partner_id, False, False, parent.date_order, product_packaging, parent.fiscal_position, + True, parent.warehouse_id, context) + +