From f56e0bca5490434a0353b57980a9a2dee0aa4c39 Mon Sep 17 00:00:00 2001 From: "Andrea Grazioso (agr-odoo)" <agr@odoo.com> Date: Thu, 23 Jun 2022 15:08:52 +0000 Subject: [PATCH] [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: Olivier Colson (oco) <oco@odoo.com> --- .../static/src/js/reconciliation/reconciliation_model.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/static/src/js/reconciliation/reconciliation_model.js b/addons/account/static/src/js/reconciliation/reconciliation_model.js index 3a2733312258..89ddce16b5fe 100644 --- a/addons/account/static/src/js/reconciliation/reconciliation_model.js +++ b/addons/account/static/src/js/reconciliation/reconciliation_model.js @@ -751,6 +751,8 @@ var StatementModel = BasicModel.extend({ prop.tax_ids = _.filter(prop.tax_ids, function (val) { return val.id !== id; }); + // Remove all tax tags, they will be recomputed in case of remaining taxes + prop.tag_ids = []; break; } } -- GitLab