From d3ea9110d20db5e07a3f61a319914fcc6d223252 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sat, 31 Oct 2020 17:19:19 +0100 Subject: [PATCH] ignore template fields that do not exist in real --- account_chart_update/wizard/wizard_chart_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_chart_update/wizard/wizard_chart_update.py b/account_chart_update/wizard/wizard_chart_update.py index 0c95dee6d..a68f08f4f 100644 --- a/account_chart_update/wizard/wizard_chart_update.py +++ b/account_chart_update/wizard/wizard_chart_update.py @@ -662,7 +662,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