[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 <las@odoo.com>
This commit is contained in:
Camille Spiritus
2022-04-04 12:32:09 +02:00
parent d53da71fe5
commit db53118099
+1 -1
View File
@@ -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 = [
(