summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2015-09-09 14:20:14 +0200
committerGoffin Simon <sig@odoo.com>2015-09-10 09:10:50 +0200
commit77c8da7d2f7a940a9666e6ffb87d265337c5e3db (patch)
tree854e49c3da4e72b6e528760f0b9b136803b80681
parent74711efa0a25c3cd5b06ee5f7036878d28a23ea0 (diff)
[FIX] point_of_sale: tax_amount sign
The sign of the tax_amount in an "account.move.line" can be negative. Introduced by cb86fef opw:648231
-rw-r--r--addons/point_of_sale/point_of_sale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py
index fdb64a665bd..023b031cc90 100644
--- a/addons/point_of_sale/point_of_sale.py
+++ b/addons/point_of_sale/point_of_sale.py
@@ -1258,7 +1258,7 @@ class pos_order(osv.osv):
'credit': ((tax_amount>0) and tax_amount) or 0.0,
'debit': ((tax_amount<0) and -tax_amount) or 0.0,
'tax_code_id': key[tax_code_pos],
- 'tax_amount': abs(tax_amount),
+ 'tax_amount': tax_amount,
'partner_id': order.partner_id and self.pool.get("res.partner")._find_accounting_partner(order.partner_id).id or False
})