hr_holidays bad checking on workflow actions
Bug #430098 reported by
Niels Huylebroeck
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
hr_holidays/hr.py
The holidays_refuse() (and other functions) do not properly return errors when for example there is no employee linked on the current user.
line 209:
ids2 = self.pool.
Needs to check if the ids2 actually contains anything
Needs to raise osv_except when it's empty.
Related branches
affects: | openobject-client → openobject-addons |
Changed in openobject-addons: | |
status: | New → Confirmed |
To post a comment you must log in.
To clarify, you get a list index out of range error when there is no employee linked to the uid.
So it should throw a proper exception explain your login does not have an employee linked or something.