From 79bfa8e45c053722a30c36fb83aa113255500fc6 Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Fri, 11 May 2012 13:56:14 +0530 Subject: [PATCH] [FIX] hr_timesheet: In hr.sign.in.project, correct args in attendance_action_change bzr revid: hmo@tinyerp.com-20120511082614-4iitswji8dgwsbst --- addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py | 6 +++--- addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py b/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py index e3f7f0c7acb..d7bd43e5d92 100644 --- a/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py +++ b/addons/hr_timesheet/wizard/hr_timesheet_sign_in_out.py @@ -91,7 +91,7 @@ class hr_so_project(osv.osv_memory): emp_obj = self.pool.get('hr.employee') for data in self.browse(cr, uid, ids, context=context): emp_id = data.emp_id.id - emp_obj.attendance_action_change(cr, uid, [emp_id], type='sign_out', dt=data.date) + emp_obj.attendance_action_change(cr, uid, [emp_id], {'action':'sign_out', 'action_date':data.date}) self._write(cr, uid, data, emp_id, context=context) return {'type': 'ir.actions.act_window_close'} @@ -99,7 +99,7 @@ class hr_so_project(osv.osv_memory): emp_obj = self.pool.get('hr.employee') for data in self.browse(cr, uid, ids, context=context): emp_id = data.emp_id.id - emp_obj.attendance_action_change(cr, uid, [emp_id], type='action', dt=data.date) + emp_obj.attendance_action_change(cr, uid, [emp_id], {'action':'action', 'action_date':data.date}) self._write(cr, uid, data, emp_id, context=context) return {'type': 'ir.actions.act_window_close'} @@ -156,7 +156,7 @@ class hr_si_project(osv.osv_memory): emp_obj = self.pool.get('hr.employee') for data in self.browse(cr, uid, ids, context=context): emp_id = data.emp_id.id - emp_obj.attendance_action_change(cr, uid, [emp_id], type = 'sign_in' ,dt=data.date or False) + emp_obj.attendance_action_change(cr, uid, [emp_id], {'action':'sign_in', 'action_date':data.date}) return {'type': 'ir.actions.act_window_close'} def default_get(self, cr, uid, fields_list, context=None): diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml index 91b61969ca8..d9071d639ea 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml @@ -92,7 +92,7 @@