From c88f0d926cb62f1e262fc1e072a8b43311d5de0a Mon Sep 17 00:00:00 2001 From: Jos De Graeve Date: Mon, 28 Sep 2015 19:09:01 +0200 Subject: [PATCH] [FIX] sale: company filtered taxes for fix_tax_included_price This revision is related to: - 503820acb6d82a85c0c49ac26f7e7f8cd73851dd - 3b02e3d63dcb62ed24cdbbdb7bd06f67849e1a24 The taxes used to define the price must be the product taxes of the company of the order. Closes #8759 --- addons/sale/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 549c0edbd57..09256593b5c 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -1212,7 +1212,7 @@ class sale_order_line(osv.osv): warning_msgs += _("No valid pricelist line found ! :") + warn_msg +"\n\n" else: if update_tax: - price = self.pool['account.tax']._fix_tax_included_price(cr, uid, price, product_obj.taxes_id, result['tax_id']) + price = self.pool['account.tax']._fix_tax_included_price(cr, uid, price, taxes, result['tax_id']) result.update({'price_unit': price}) if context.get('uom_qty_change', False): values = {'price_unit': price}