-
- Downloads
[IMP] account: Improve lock dates
The tax lock date no longer blocks the user when creating a journal entry priors to it.
Instead, the accounting date is moved automatically during the validation to the next
available date.
This commit also brings more flexibility when dealing with the tax lock date. Indeed,
the error is now shown only when adding something impacting the tax report that was not
always the case before (e.g. adding a new line not affecting the tax report must not
raise something).
Others check has been also refactored to be more consistent with the "fully editable" mindset.
closes odoo/odoo#36304
Signed-off-by:
Laurent Smet <smetl@users.noreply.github.com>
Showing
- addons/account/models/account_move.py 124 additions, 77 deletionsaddons/account/models/account_move.py
- addons/account/tests/__init__.py 0 additions, 1 deletionaddons/account/tests/__init__.py
- addons/account/tests/test_account_move_entry.py 204 additions, 22 deletionsaddons/account/tests/test_account_move_entry.py
- addons/account/tests/test_account_move_out_invoice.py 106 additions, 0 deletionsaddons/account/tests/test_account_move_out_invoice.py
- addons/account/tests/test_account_move_tax_lock_date.py 0 additions, 96 deletionsaddons/account/tests/test_account_move_tax_lock_date.py
- addons/account/views/account_move_views.xml 5 additions, 0 deletionsaddons/account/views/account_move_views.xml
Loading
Please register or sign in to comment