summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorRobot Odoo <xmo+roboto@odoo.com>2019-02-05 10:36:34 +0100
committerGitHub <noreply@github.com>2019-02-05 10:36:34 +0100
commitb13a22029599e520e6bd9b7625d70a572e1d7c7c (patch)
treee763af9855ef40701b9ce5bdcfcd3f71bf2064a0 /addons/web/static/src/js/views/basic/basic_controller.js
parent262e00108631680a30e416c7bd6fc1d2c23d8e8f (diff)
parent9c1b9324895bf77cc99aba0fd7640ae213be664a (diff)
[FIX] hr_holidays: fasten creation of leaves by company
When creating a leave, we usually check/create activities for the concerned users, this is fine when creating one leave. However it starts to become a problem when trying to create leaves in batch using the by company or by department holiday_type as the number of leaves created in batch can become quite big. Now when we create leaves in batch, we do not check for the activities, which will fasten a lot the creation. Another problem is that when someone defined a leave on the very day you want to create such a request, then it will crash, this can lead to waste of time and resources. Now we raise an error before trying to create the leaves in case of conflict. NB: Tested with +- 320 records, took 20 seconds instead of more than 10 minutes. Task: 1934383 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#30625
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions