diff options
| author | Cedric Snauwaert <csn@openerp.com> | 2017-10-27 12:29:54 +0200 |
|---|---|---|
| committer | Cedric Snauwaert <csn@openerp.com> | 2017-10-27 12:29:57 +0200 |
| commit | 8fdac4b6b2f2fccafc95ea65b976c7e4028d9832 (patch) | |
| tree | 906c3ab2dfc3ed49f35acccbe85855070e5f269e | |
| parent | c163351e8a6776e046f04e6c264bf4372499dbba (diff) | |
[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.
| -rw-r--r-- | addons/account/models/account_move.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 5cb185a8ad2..d5ed18ace1f 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -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 |
