You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module quality_control_hr has a couple of security rule that assume the user has an associated employee, so they throw ValueError: "tuple index out of range" on login when a user doesn't have an employee.
The module quality_control_hr has a couple of security rule that assume the user has an associated employee, so they throw
ValueError: "tuple index out of range"
on login when a user doesn't have an employee.The domain of the rules in question is:
['|',('department','=',user.employee_ids[0].department_id.id),('department','=',False)]
My suggestion would be to change it to:
['|',('department','=',user.employee_ids and user.employee_ids[0].department_id.id),('department','=',False)]
But I'm not sure it's the best way to deal with this problem.
The text was updated successfully, but these errors were encountered: