Calls to `_error_checking()` would look for every work entries between 2 dates, even if we were only modifying one employee's. Because of that the leave creation on big production database would take a long time. Now the method allows for filtering to the employees. task-3142610 closes odoo/odoo#110987 X-original-commit: f54b7c34bc89140e2d31f0b602911ec9cda3ed0d Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Signed-off-by: Kevin Baptiste <kba@odoo.com>