[FIX] sale: company filtered taxes for fix_tax_included_price
This revision is related to: -503820acb6
-3b02e3d63d
The taxes used to define the price must be the product taxes of the company of the order. Closes #8759
This commit is contained in:
parent
06fbf3a572
commit
c88f0d926c
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue