From 4fb47235f6a7027506092cece3436322ef537351 Mon Sep 17 00:00:00 2001 From: pso Date: Tue, 19 Oct 2010 17:33:26 +0530 Subject: [PATCH] [IMP] hr modules: removed unused vars bzr revid: pso@tinyerp.com-20101019120326-9or5zt16zo4g4ayz --- addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index b152e01..d4cf102 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -261,7 +261,7 @@ class hr_timesheet_sheet(osv.osv): raise osv.except_osv(_('Error !'), _('You can not sign in from an other date than today')) emp_ids = emp_obj.search(cr, uid, [('user_id', '=', uid)], context=context) context['sheet_id']=ids[0] - success = emp_obj.attendance_action_change(cr, uid, emp_ids, type='sign_in', context=context,) + emp_obj.attendance_action_change(cr, uid, emp_ids, type='sign_in', context=context,) return True def sign_out(self, cr, uid, ids, context=None): @@ -272,7 +272,7 @@ class hr_timesheet_sheet(osv.osv): raise osv.except_osv(_('Error !'), _('You can not sign out from an other date than today')) emp_ids = emp_obj.search(cr, uid, [('user_id', '=', uid)]) context['sheet_id']=ids[0] - success = emp_obj.attendance_action_change(cr, uid, emp_ids, type='sign_out', context=context,) + emp_obj.attendance_action_change(cr, uid, emp_ids, type='sign_out', context=context,) return True _columns = { -- 1.7.10.4