Skip to content
Snippets Groups Projects
Commit ac3cf2ed authored by Pouya Malekinejad's avatar Pouya Malekinejad
Browse files

[IMP] account_invoice: prevent erasing of a tax line entry if there is a tax...

[IMP] account_invoice: prevent erasing of a tax line entry if there is a tax related to it in the invoice

This is actually checking if for each tax of each line of invoice in the move, there exist a tax entry.
This will prevent the users from accidentally or dully erasing tax lines which includes 0% taxes.
If the users delete the line containing tax, it will be added again the same way as the counterpart line
for an invoice line is being added.

Also, fixes the following:
Recalculating all invoices if a single invoice in a batch has a line with `recompute_tax_line` set should not be allowed.
Deleting a tax account entry of a posted move should not be allowed.

task ID:2834679

Pr: #90834
Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent b6833702
No related branches found
No related tags found
No related merge requests found
Loading
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