From 07ddb4378335dfdbbda7d5b35602583c85e4774b Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Thu, 28 Nov 2019 13:26:59 +0000 Subject: [PATCH] [FIX] account: Fix amount_total_signed in account.move The miscalleneous journal entries has displayed in the tree view with a negative amount in amount_total_signed that has no meaning. X-original-commit: 4a7dcb4027ee93448b2d15cc262b8c2fb5d531db --- addons/account/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 81334d45fb4..76d727a8f7b 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1015,7 +1015,7 @@ class AccountMove(models.Model): move.amount_residual = -sign * (total_residual_currency if len(currencies) == 1 else total_residual) move.amount_untaxed_signed = -total_untaxed move.amount_tax_signed = -total_tax - move.amount_total_signed = -total + move.amount_total_signed = abs(total) if move.type == 'entry' else -total move.amount_residual_signed = total_residual currency = len(currencies) == 1 and currencies.pop() or move.company_id.currency_id