Skip to content
Snippets Groups Projects
Commit 3d8fb4d6 authored by jugj-odoo's avatar jugj-odoo
Browse files

[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: default avatarSofie Gvaladze (sgv) <sgv@odoo.com>
parent 679c813e
No related branches found
No related tags found
No related merge requests found
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