[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:
parent
74711efa0a
commit
77c8da7d2f
|
@ -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
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue