-
- Downloads
[FIX] hr_contract: proceed cron action even when ValidationError occurs
The method update_state is called from cron. When the contracts are
updated couple things are checked. There are constraints set that can
throw ValidationError. As a result, none of the contract states are updated.
In this PR we do the following:
In case the ValidationError occurs when we run the cron, we update
contracts that can be updated, and silently pass the invalid contracts.
task - 3069480
bloupbloup
closes odoo/odoo#110941
Related: odoo/enterprise#36771
Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>