[FIX] account: payment blue lines in reconciliation were in wrong column

The problem was because in case of payment we take the abs value which should not be the case.
This commit is contained in:
Cedric Snauwaert
2017-10-27 12:29:57 +02:00
parent c163351e8a
commit 8fdac4b6b2
+2 -2
View File
@@ -750,8 +750,8 @@ class AccountMoveLine(models.Model):
# For already reconciled lines, don't use amount_residual(_currency)
if line.account_id.internal_type == 'liquidity':
amount = abs(debit - credit)
amount_currency = abs(line.amount_currency)
amount = debit - credit
amount_currency = line.amount_currency
target_currency = target_currency or company_currency