You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite the tax lock date, users are able to modify the tax report by adding tags.
Steps to reproduce:
Ensure the tax lock date is set
1. Journal Items list view
2. Edit one/many lines that
- have a date before the tax lock date,
- don't have a tax,
- nor tax tags,
- and is not a tax line.
3. Add a new tax tag
Issue:
The tax tags are added and might impact a tax report, when you should have received a user error.
Cause:
The `write` function calls the `_check_tax_lock_date` which in turn only checks the existing line
instead of the values given in the `write` parameters.
Since the line has no existing tax tags the check does not fail.
Solution:
Call the tax lock check both before and after writing the move line.
Task-5169152
closesodoo#233317
X-original-commit: e1c37c1
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com>
0 commit comments