diff --git a/addons/account/models/account_tax_report.py b/addons/account/models/account_tax_report.py index 99e7775e936..98e8fb29f81 100644 --- a/addons/account/models/account_tax_report.py +++ b/addons/account/models/account_tax_report.py @@ -254,7 +254,7 @@ class AccountTaxReportLine(models.Model): """ all_tags = self.mapped('tag_ids') tags_to_unlink = all_tags.filtered(lambda x: not (x.tax_report_line_ids - self)) - self.write({'tag_ids': [(2, tag.id, 0) for tag in tags_to_unlink]}) + self.write({'tag_ids': [(3, tag.id, 0) for tag in tags_to_unlink]}) self._delete_tags_from_taxes(tags_to_unlink.ids) @api.model