Browse Source

[FIX] hr_holidays: Add missing context check

Fixes #4341
master
Yannick Vaucher 7 years ago
committed by Martin Trigaux
parent
commit
ead3f039df
  1. 3
      addons/hr_holidays/hr_holidays.py

3
addons/hr_holidays/hr_holidays.py

@ -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)

Loading…
Cancel
Save