[IMP] hr_attendance : Improved Test Cases.
bzr revid: mdi@tinyerp.com-20120116070012-8blt2ov12b0qx74b
This commit is contained in:
parent
293ee2f2d4
commit
7db3e24af9
|
@ -30,21 +30,6 @@
|
|||
- state == 'absent'
|
||||
-
|
||||
In order to check that first attendance must be Sign In.
|
||||
-
|
||||
!python {model: hr.attendance}: |
|
||||
try:
|
||||
self.create(cr, uid, {employee_id: hr.employee_fp, name: time.strftime('%Y-%m-%d 09:59:25'), action: 'sign_out'}, None)
|
||||
except Exception, e:
|
||||
assert e, 'The first attendance must be Sign In'
|
||||
-
|
||||
First of all, Employee Sign's In.
|
||||
-
|
||||
!record {model: hr.attendance, id: hr_attendance_1}:
|
||||
employee_id: hr.employee_fp
|
||||
name: !eval time.strftime('%Y-%m-%d 09:59:25')
|
||||
action: 'sign_in'
|
||||
-
|
||||
In order to check that first attendance must be Sign In.
|
||||
-
|
||||
!python {model: hr.attendance}: |
|
||||
import time
|
||||
|
|
Loading…
Reference in New Issue