Merge PR #1188 into 12.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2021-05-24 12:48:47 +00:00

View File

@@ -656,7 +656,7 @@ class WizardUpdateChartsAccounts(models.TransientModel):
('res_id', '=', template.id),
])
new_xml_id = "%d_%s" % (self.company_id.id, template_xmlid.name)
return not ir_model_data.search([
return template_xmlid and not ir_model_data.search([
('res_id', '=', real_obj.id),
('model', '=', real_obj._name),
('module', '=', template_xmlid.module),