diff --git a/addons/account/models/chart_template.py b/addons/account/models/chart_template.py index 37adeeef7c8..e3325b06755 100644 --- a/addons/account/models/chart_template.py +++ b/addons/account/models/chart_template.py @@ -302,8 +302,7 @@ class AccountChartTemplate(models.AbstractModel): for _c, _id, repartition_line in values.get('repartition_line_ids', []): tags = repartition_line.get('tag_ids') repartition_line.clear() - if tags: - repartition_line['tag_ids'] = tags + repartition_line['tag_ids'] = tags or [Command.clear()] elif model_name == 'account.account': # Point or create xmlid to existing record to avoid duplicate code account = self.ref(xmlid, raise_if_not_found=False)