From dea05e6a8471085611a14be7d8ece7cd012a8dce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 8 Aug 2014 11:38:57 +0200 Subject: [PATCH] [FIX] sale_stock: product_id_change_with_wh should not call another method (product_id_change) using super, but self. Otherwise some overrides are lost, leading to issues with event-related products. --- addons/sale_stock/sale_stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_stock/sale_stock.py b/addons/sale_stock/sale_stock.py index 94ecec9..9e409f8 100644 --- a/addons/sale_stock/sale_stock.py +++ b/addons/sale_stock/sale_stock.py @@ -284,7 +284,7 @@ class sale_order_line(osv.osv): product_uom_obj = self.pool.get('product.uom') product_obj = self.pool.get('product.product') warning = {} - res = super(sale_order_line, self).product_id_change(cr, uid, ids, pricelist, product, qty=qty, + res = self.product_id_change(cr, uid, ids, pricelist, product, qty=qty, uom=uom, qty_uos=qty_uos, uos=uos, name=name, partner_id=partner_id, lang=lang, update_tax=update_tax, date_order=date_order, packaging=packaging, fiscal_position=fiscal_position, flag=flag, context=context) -- 1.7.10.4