The constraint is added in `hr_payroll`, checking that if `is_unforeseen` is True, then so must be `is_leave`. To reproduce the error simply install `hr_payroll`, edit Work Entry Type Attendance to set as unforeseen absence and upgrade the module `hr_work_entry_contract`. closes odoo/odoo#92358 X-original-commit: 5448ddcbec8a1058aa271206d5a8999b3e67dda5 Signed-off-by: Kevin Baptiste <kba@odoo.com>