mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] account_chart_update: ignore template fields that do not exist in real
This commit is contained in:
committed by
Pedro M. Baeza
parent
5e9c792879
commit
66f3db4adb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user