From 9f9b3276c10b1f5d4fe8865b6538076cc1fddb49 Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Fri, 11 May 2012 11:51:27 +0530 Subject: [PATCH] [FIX] hr_attendance: fix yml bzr revid: hmo@tinyerp.com-20120511062127-c1ak373ml0h7ojvt --- addons/hr_attendance/test/attendance_process.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/addons/hr_attendance/test/attendance_process.yml b/addons/hr_attendance/test/attendance_process.yml index 4ad765d65df..7902bf11d9d 100644 --- a/addons/hr_attendance/test/attendance_process.yml +++ b/addons/hr_attendance/test/attendance_process.yml @@ -1,16 +1,8 @@ - In order to test attendance process in OpenERP, I entry of SignIn of employee. - - !python {model: hr.sign.in.out}: | - context.update({'emp_id': [ref('hr.employee_al')]}) #TOFIX: emp_ids instead of 'emp_id' -- - !record {model: hr.sign.in.out, id: employee_sign_in}: - {} -- - Employee Signs In. -- - !python {model: hr.sign.in.out}: | - self.si_check(cr, uid, [ref("employee_sign_in")], context=context) + !python {model: hr.employee}: | + self.attendance_action_change(cr, uid, [ref("hr.employee_al")], context=context) - I check that Employee is "Present". - @@ -19,10 +11,10 @@ - After few seconds, employee sign's out. - - !python {model: hr.sign.in.out}: | + !python {model: hr.employee}: | import time time.sleep(2) - self.so_check(cr, uid, [ref("employee_sign_in")], context=context) + self.attendance_action_change(cr, uid, [ref("hr.employee_al")], context=context) - I check that Employee is "Absent". -