[FIX] hr_attendance: fix yml

bzr revid: hmo@tinyerp.com-20120511062127-c1ak373ml0h7ojvt
This commit is contained in:
Harry (OpenERP) 2012-05-11 11:51:27 +05:30
parent 8f8eca225d
commit 9f9b3276c1
1 changed files with 4 additions and 12 deletions

View File

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