[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-10 09:10:50 +02:00
parent 74711efa0a
commit 77c8da7d2f
+1 -1
View File
@@ -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
})