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

[FIX] hr_holidays: Add missing context check

Fixes #4341
parent 26bf3526
Branches
Tags
No related merge requests found
......@@ -90,7 +90,8 @@ class hr_holidays_status(osv.osv):
}
def name_get(self, cr, uid, ids, context=None):
if context is None:
context = {}
if not context.get('employee_id',False):
# leave counts is based on employee_id, would be inaccurate if not based on correct employee
return super(hr_holidays_status, self).name_get(cr, uid, ids, context=context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment