From ab800b4ea2f9ee3a512a1e6035dbfb9781b34b32 Mon Sep 17 00:00:00 2001 From: pvy Date: Mon, 18 Jan 2016 12:02:20 +0100 Subject: [PATCH] [FIX] account: internal_type should be read_only so that it's not in the 'create' vals and does not trigger the _compute_matched_percentage() function --- addons/account/models/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account.py b/addons/account/models/account.py index f41b3710777..5e158e158f2 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -102,7 +102,7 @@ class AccountAccount(models.Model): deprecated = fields.Boolean(index=True, default=False) user_type_id = fields.Many2one('account.account.type', string='Type', required=True, oldname="user_type", help="Account Type is used for information purpose, to generate country-specific legal reports, and set the rules to close a fiscal year and generate opening entries.") - internal_type = fields.Selection(related='user_type_id.type', store=True) + internal_type = fields.Selection(related='user_type_id.type', store=True, readonly=True) #has_unreconciled_entries = fields.Boolean(compute='_compute_has_unreconciled_entries', # help="The account has at least one unreconciled debit and credit since last time the invoices & payments matching was performed.") last_time_entries_checked = fields.Datetime(string='Latest Invoices & Payments Matching Date', readonly=True, copy=False,