Purpose ======= The time off duration is set to 0 when the related contract is set as expired, then we remove the end date and set the contract back to running. That's because the check was done before calling super, hence the contract is excluded from the candidates because it is still expired without end date, which would make no sense when trying to retrieve the related calendar. closes odoo/odoo#157681 Taskid: 3806342 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>