odoo/odoo#254954

Created by fw-bot
Merged at 038db3c95db985c61062e6e4a80f38a33cfc561c

Statuses:

Linked pull requests
label
odoo-dev:saas-19.1-saas-18.3-prevent-tax-grp-deletion-if-used-smjo-509748-fw
head
98d4e3e557b9dcebe6bc1ffaa61ffd34122f1e80
merged
1 week ago by Smit Joshi (smjo)
odoo/odoo odoo/enterprise
saas-18.3 #245243 #105174
saas-18.4 #254730 #111198
19.0 #254939 #111365
saas-19.1 #254954 #111378
saas-19.2 #254961 #111384
master #255056 #111433

[FIX] account: block deletion of used tax groups

Before this PR:
- Group of taxes can be deleted by a user, even if they are used.

After this PR:
- If a user tries to delete a group of taxes in use, a validation
error is raised.

  • Fixed a test case in POS and deactivated the tax instead of
    deleting the tax.

Related PR: odoo/enterprise#105174

task-5472834

Forward-Port-Of: #254730
Forward-Port-Of: #245243