[FIX] account_chart_update: ignore template fields that do not exist in real
This commit is contained in:
parent
d4094eff87
commit
eefe80e215
@ -7,7 +7,7 @@
|
||||
{
|
||||
"name": "Detect changes and update the Account Chart from a template",
|
||||
"summary": "Wizard to update a company's account chart from a template",
|
||||
"version": "14.0.1.0.0",
|
||||
"version": "14.0.1.0.1",
|
||||
"author": "Tecnativa, BCIM, Okia, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/account-financial-tools",
|
||||
"depends": ["account"],
|
||||
|
@ -658,7 +658,7 @@ class WizardUpdateChartsAccounts(models.TransientModel):
|
||||
}
|
||||
to_include = template_field_mapping[template._name].mapped("name")
|
||||
for key, field in template._fields.items():
|
||||
if key in ignore or key not in to_include:
|
||||
if key in ignore or key not in to_include or not hasattr(real, key):
|
||||
continue
|
||||
expected = None
|
||||
# Translate template records to reals for comparison
|
||||
|
Loading…
Reference in New Issue
Block a user