[FIX] account: Disallow to post move using deprecated account.
A move in draft created with an account that is later deprecated can still be posted, while it shouldn't be allowed. Thus, we add a new error blocking this wrong behaviour. Task id #3087763 closes odoo/odoo#107130 X-original-commit: c2519747 Signed-off-by:Florian Gilbert (flg) <flg@odoo.com> Signed-off-by:
Nicolas Viseur (vin) <vin@odoo.com>
Showing
- addons/account/i18n/account.pot 7 additions, 0 deletionsaddons/account/i18n/account.pot
- addons/account/models/account_move.py 3 additions, 0 deletionsaddons/account/models/account_move.py
- addons/account/tests/test_account_move_out_invoice.py 19 additions, 0 deletionsaddons/account/tests/test_account_move_out_invoice.py
Loading