From b3aa2d092908aa3ecd1db52a0b055be7c5c9d084 Mon Sep 17 00:00:00 2001 From: RomainLibert Date: Fri, 11 Oct 2019 07:38:34 +0000 Subject: [PATCH] [FIX] account: remove uncomputed field The field `number_entries` should have a `_compute_number_entries` method defined on the model Since the field does not seem to make a lot of sense in here so remove the field closes odoo/odoo#38487 X-original-commit: b15fbab8a85aca9ff0895d41d50af569db27fd3c Signed-off-by: Romain Libert (rli) --- addons/account/models/chart_template.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/account/models/chart_template.py b/addons/account/models/chart_template.py index b011a0914ce..7bcc2f6ded1 100644 --- a/addons/account/models/chart_template.py +++ b/addons/account/models/chart_template.py @@ -1173,5 +1173,4 @@ class AccountReconcileModelTemplate(models.Model): second_amount_from_label_regex = fields.Char(string="Second Amount from Label (regex)", default=r"([\d\.,]+)") force_second_tax_included = fields.Boolean(string='Second Tax Included in Price', help='Force the second tax to be managed as a price included tax.') - number_entries = fields.Integer(string='Number of entries related to this model', compute='_compute_number_entries') second_tax_ids = fields.Many2many('account.tax.template', relation='account_reconcile_model_tmpl_account_tax_bis_rel', string='Second Taxes', ondelete='restrict')