[16.0][FIX] account_chart_update: prevent malformed xmlid during update

This commit is contained in:
Adrián Cifuentes
2024-07-19 16:02:43 +02:00
parent 86927340e1
commit 5bb896d2fd
2 changed files with 12 additions and 2 deletions

View File

@@ -1100,14 +1100,14 @@ class WizardUpdateChartsAccounts(models.TransientModel):
ir_model_data.search(
[("model", "=", real_obj._name), ("res_id", "=", real_obj.id)]
).unlink()
template_xmlid.copy(
new_rec = template_xmlid.copy(
{
"model": real_obj._name,
"res_id": real_obj.id,
"name": new_xml_id,
"noupdate": True,
}
)
new_rec.name = new_xml_id
def _update_taxes(self):
"""Process taxes to create/update/deactivate."""