[CHANGE]: better to have self then obj

bzr revid: mga@tinyerp.com-20110620060434-xu1ds231oyn339kb
This commit is contained in:
Mantavya Gajjar 2011-06-20 11:34:34 +05:30
parent effe36ee48
commit 9e8eea64c7
1 changed files with 2 additions and 2 deletions

View File

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