From 8fdac4b6b2f2fccafc95ea65b976c7e4028d9832 Mon Sep 17 00:00:00 2001 From: Cedric Snauwaert Date: Fri, 27 Oct 2017 12:29:54 +0200 Subject: [PATCH] [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. --- addons/account/models/account_move.py | 4 ++-- 1 file 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