[IMP]:hr_attendance:improved code
bzr revid: apa@tinyerp.com-20101222111549-9bu03x6lejcgrgwx
This commit is contained in:
parent
5e823bf0b6
commit
35a69fa9a2
|
@ -5,10 +5,9 @@
|
|||
import netsvc, tools, os, time
|
||||
ctx={}
|
||||
ctx.update({'model': 'hr.employee','active_ids': [ref('hr.employee1'),ref('hr.employee2'),ref('hr.employee3')]})
|
||||
data_dict = {'month': time.gmtime()[1], 'year': time.gmtime()[0]}
|
||||
data_dict = {}
|
||||
from tools import test_reports
|
||||
test_reports.try_report_action(cr, uid, 'action_hr_attendance_month',wiz_data=data_dict, context=ctx, our_module='hr_attendance')
|
||||
|
||||
-
|
||||
Print HR Attendance Error Report through the wizard
|
||||
-
|
||||
|
@ -16,6 +15,6 @@
|
|||
import netsvc, tools, os, time
|
||||
ctx={}
|
||||
ctx.update({'model': 'hr.employee','active_ids': [ref('hr.employee1')]})
|
||||
data_dict = {'init_date': time.strftime('%Y-01-01'), 'end_date':time.strftime('%Y-%m-%d'), 'max_delay': 120 }
|
||||
data_dict = {'init_date': time.strftime('%Y-01-01')}
|
||||
from tools import test_reports
|
||||
test_reports.try_report_action(cr, uid, 'action_hr_attendance_error',wiz_data=data_dict, context=ctx, our_module='hr_attendance')
|
||||
|
|
Loading…
Reference in New Issue