[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
This commit is contained in:
Goffin Simon 2015-09-09 14:20:14 +02:00
parent 74711efa0a
commit 77c8da7d2f
1 changed files with 1 additions and 1 deletions

View File

@ -1258,7 +1258,7 @@ class pos_order(osv.osv):
'credit': ((tax_amount>0) and tax_amount) or 0.0, 'credit': ((tax_amount>0) and tax_amount) or 0.0,
'debit': ((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_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 'partner_id': order.partner_id and self.pool.get("res.partner")._find_accounting_partner(order.partner_id).id or False
}) })