Skip to content
Snippets Groups Projects
Commit f56e0bca authored by Andrea Grazioso (agr-odoo)'s avatar Andrea Grazioso (agr-odoo)
Browse files

[FIX] account: remove tags of deleted taxes


Have a tax with tax tags
Create a bank statement line
Reconcile creating a manual operation, add the tax, then remove it and
validate
Check journal entry

The tax tags will be present on the base line even if the tax was
removed

opw-2867395

closes odoo/odoo#94445

Signed-off-by: default avatarOlivier Colson (oco) <oco@odoo.com>
parent cd1a85ae
No related branches found
No related tags found
No related merge requests found
...@@ -751,6 +751,8 @@ var StatementModel = BasicModel.extend({ ...@@ -751,6 +751,8 @@ var StatementModel = BasicModel.extend({
prop.tax_ids = _.filter(prop.tax_ids, function (val) { prop.tax_ids = _.filter(prop.tax_ids, function (val) {
return val.id !== id; return val.id !== id;
}); });
// Remove all tax tags, they will be recomputed in case of remaining taxes
prop.tag_ids = [];
break; break;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment