[FIX] point_of_sale: fix included taxes

The unit_price should be already 'fixed' by the time we get in
`_compute_amount_line_all`.

This reverts commit d938ba87ae.
This commit is contained in:
Nicolas Martinelli
2017-06-30 08:45:24 +02:00
parent 307317dc2d
commit 20c91f474c
+1 -2
View File
@@ -1602,8 +1602,7 @@ class pos_order_line(osv.osv):
fiscal_position_id = line.order_id.fiscal_position_id
if fiscal_position_id:
taxes = fiscal_position_id.map_tax(taxes)
price = self.env['account.tax']._fix_tax_included_price(
line.price_unit * (1 - (line.discount or 0.0) / 100.0), line.product_id.taxes_id, taxes)
price = line.price_unit * (1 - (line.discount or 0.0) / 100.0)
line.price_subtotal = line.price_subtotal_incl = price * line.qty
if taxes:
taxes = taxes.compute_all(price, currency, line.qty, product=line.product_id, partner=line.order_id.partner_id or False)