Skip to content
Snippets Groups Projects
Commit 10e2267b authored by Ivàn Todorovich's avatar Ivàn Todorovich
Browse files

[IMP] hr_holidays: perf improvement


Previously, a performance improvement landed on 5a2efd2e.
It totally makes sense, but there's a corner case that's actually hurt by that
commit: there are cases where the heavy computation of employee_quantity_available
is simply not used by the following loop.

This commit solves it.

It also improves the readability of the code by unpacking and properly naming
some variables.

closes odoo/odoo#122823

Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
parent 49ba394a
No related branches found
No related tags found
Loading
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