-
- Downloads
[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:
William André (wan) <wan@odoo.com>
Showing
- addons/account/models/account_move.py 12 additions, 12 deletionsaddons/account/models/account_move.py
- addons/account/tests/test_account_move_entry.py 15 additions, 0 deletionsaddons/account/tests/test_account_move_entry.py
- addons/account/tests/test_account_move_in_invoice.py 12 additions, 0 deletionsaddons/account/tests/test_account_move_in_invoice.py
Loading
Please register or sign in to comment