[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
This commit is contained in:
Laurent Smet
2019-11-28 13:26:59 +00:00
parent 6f9c1f778d
commit 07ddb43783
+1 -1
View File
@@ -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