[CHANGE]: better to have self then obj
bzr revid: mga@tinyerp.com-20110620060434-xu1ds231oyn339kb
This commit is contained in:
parent
effe36ee48
commit
9e8eea64c7
|
@ -94,8 +94,8 @@ class hr_holidays(osv.osv):
|
|||
_description = "Leave"
|
||||
_order = "type desc, date_from asc"
|
||||
|
||||
def _employee_get(obj, cr, uid, context=None):
|
||||
ids = obj.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context)
|
||||
def _employee_get(self, cr, uid, context=None):
|
||||
ids = self.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context)
|
||||
if ids:
|
||||
return ids[0]
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue