-
- Downloads
[FIX] hr_attendance: Fix attendance creation if no default user
Steps to reproduce:
-------------------
- Create user with default company A
- User may have related employees, but not in company A
- Go to attendance - click -> New
You will get a traceback related to the sql request of _compute_overtime_hours
Explanation:
------------
- The query needs a non-empty list of employees
Fix:
----
- Don't run the sql query if we haven't defined any employees yet on the attendance
closes odoo/odoo#141808
Signed-off-by:
Sofie Gvaladze (sgv) <sgv@odoo.com>
Loading
Please register or sign in to comment