From db5311809908fe316a9e7ec9b08623ab3025913a Mon Sep 17 00:00:00 2001 From: Camille Spiritus Date: Wed, 30 Mar 2022 08:00:58 +0000 Subject: [PATCH] [IMP] account: display company's total amount in payments when grouping When looking at the list of the payments and grouping by company, the total amount per company is no longer displayed since v15. This is due to the fact that the new variable used to represent this data was no longer stored. By storing this data, we can regain this ability. task-2801688 closes odoo/odoo#87535 Related: odoo/upgrade#3401 Signed-off-by: Laurent Smet --- addons/account/models/account_payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py index 5c28c4d64de..4f8dac824b9 100644 --- a/addons/account/models/account_payment.py +++ b/addons/account/models/account_payment.py @@ -155,7 +155,7 @@ class AccountPayment(models.Model): currency_field='currency_id', compute='_compute_amount_signed', tracking=True, help='Negative value of amount field if payment_type is outbound') amount_company_currency_signed = fields.Monetary( - currency_field='company_currency_id', compute='_compute_amount_company_currency_signed') + currency_field='company_currency_id', compute='_compute_amount_company_currency_signed', store=True) _sql_constraints = [ (