When updating contracts, work entries are recomputed automatically for the employee linked to that contract. However some contracts might not have an employee, which raises an error. Added a check to recompute work entries only if the contract has an employee. closes odoo/odoo#151190 Task: 3614495 X-original-commit: 3a4683ae8159bf405513a901b1fd3bba72a05fb7 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>