diff options
| author | RomainLibert <rli@odoo.com> | 2019-01-28 17:23:36 +0100 |
|---|---|---|
| committer | RomainLibert <rli@odoo.com> | 2019-02-05 10:06:55 +0100 |
| commit | 8ab8881167c10dfb7cbcb5cfdc8164c51f72b04b (patch) | |
| tree | 25628c09f03708ff66a826d09401a3902d6af309 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 262e00108631680a30e416c7bd6fc1d2c23d8e8f (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.
Task: 1934383
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
