Skip to content
Snippets Groups Projects
user avatar
Xavier Morel authored
On install, `hr_work_entry_contract` only associates work entries to
contacts which are open or closed.

However during its execution (?) `hr_work_entry_contract` generates
entries associated with `Mitchell Admin Contract`, which is a draft
contract. As a result, when uninstalling then reinstalling
`hr_work_entry_contract` it is not able to re-associate the entries to
the contract, and thus can't reinstate the `required=True` on
`HrWorkEntry.contract_id` either, which is a "reinstallation failure"
on the CI.

A simple solution is to create the contract closed, though it would
also be a good idea to not be able to create work entries associated
with a draft contract either, maybe?

closes odoo/odoo#119808

Related: odoo/enterprise#40361
Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
6b7f3f6e
History
Name Last commit Last update