From 9e8eea64c77a15563d73b831b22df248d727d5fe Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Mon, 20 Jun 2011 11:34:34 +0530 Subject: [PATCH] [CHANGE]: better to have self then obj bzr revid: mga@tinyerp.com-20110620060434-xu1ds231oyn339kb --- addons/hr_holidays/hr_holidays.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/hr_holidays/hr_holidays.py b/addons/hr_holidays/hr_holidays.py index 3796b379ba2..7074fd5cecc 100644 --- a/addons/hr_holidays/hr_holidays.py +++ b/addons/hr_holidays/hr_holidays.py @@ -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