Skip to content
Snippets Groups Projects
Commit f54b7c34 authored by Kevin Baptiste's avatar Kevin Baptiste
Browse files

[FIX] hr_work_entry: make _error_checking faster


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#110559

Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 3d490a26
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment