From 77c8da7d2f7a940a9666e6ffb87d265337c5e3db Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 9 Sep 2015 14:20:14 +0200 Subject: [PATCH] [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 --- addons/point_of_sale/point_of_sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })