Skip to content
Snippets Groups Projects
Commit 5906f104 authored by Yannick Vaucher's avatar Yannick Vaucher Committed by Martin Trigaux
Browse files

[FIX] hr_holidays: Add missing context check

Backport of ead3f039
Fixes #4341
parent 1adb3de3
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,8 @@ class hr_holidays_status(osv.osv):
def name_get(self, cr, uid, ids, context=None):
if not ids:
return []
if context is None:
context = {}
if not context.get('employee_id',False):
# leave counts is based on empoyee_id, would be inaccurate if not based on correct employee
......
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