2010-09-17 10:58:55 +00:00
|
|
|
-
|
2010-12-21 12:07:40 +00:00
|
|
|
Print HR Attendance Error Report through the wizard
|
|
|
|
-
|
2010-09-17 10:58:55 +00:00
|
|
|
!python {model: hr.employee}: |
|
2010-12-24 04:54:34 +00:00
|
|
|
import time
|
2013-02-09 06:24:36 +00:00
|
|
|
from openerp.tools import test_reports
|
2011-12-22 13:35:59 +00:00
|
|
|
ctx = {'model': 'hr.employee','active_ids': [ref('hr.employee_fp')]}
|
2011-12-21 12:52:46 +00:00
|
|
|
data_dict = {'init_date': time.strftime('%Y-01-01')}
|
2010-12-21 12:07:40 +00:00
|
|
|
test_reports.try_report_action(cr, uid, 'action_hr_attendance_error',wiz_data=data_dict, context=ctx, our_module='hr_attendance')
|