From 11604e7ba801144fc0c7b1035c80469a8ca10b46 Mon Sep 17 00:00:00 2001 From: "apa (OpenERP)" Date: Fri, 24 Dec 2010 10:24:34 +0530 Subject: [PATCH] [IMP]:applied xrg patch in ymls. bzr revid: apa@tinyerp.com-20101224045434-uoi18b74bdg3w7un --- addons/hr_attendance/test/hr_attendance_report.yml | 2 ++ addons/hr_holidays/test/hr_holidays_report.yml | 2 ++ addons/hr_payroll/test/hr_payroll_report.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/addons/hr_attendance/test/hr_attendance_report.yml b/addons/hr_attendance/test/hr_attendance_report.yml index 9e420e117d8..523b64ee70d 100644 --- a/addons/hr_attendance/test/hr_attendance_report.yml +++ b/addons/hr_attendance/test/hr_attendance_report.yml @@ -2,6 +2,7 @@ Print the HR Attendance Report By Month through the wizard - !python {model: hr.employee}: | + import time ctx={} ctx.update({'model': 'hr.employee','active_ids': [ref('hr.employee1'),ref('hr.employee2'),ref('hr.employee3')]}) data_dict = {} @@ -11,6 +12,7 @@ Print HR Attendance Error Report through the wizard - !python {model: hr.employee}: | + import time ctx={} ctx.update({'model': 'hr.employee','active_ids': [ref('hr.employee1')]}) data_dict = {'init_date': time.strftime('%Y-01-01')} diff --git a/addons/hr_holidays/test/hr_holidays_report.yml b/addons/hr_holidays/test/hr_holidays_report.yml index bcb2f32119f..bc0b4efa51f 100644 --- a/addons/hr_holidays/test/hr_holidays_report.yml +++ b/addons/hr_holidays/test/hr_holidays_report.yml @@ -2,6 +2,7 @@ Print the HR Holidays(Summary Department) Report through the wizard - !python {model: hr.holidays}: | + import time ctx={} ctx.update({'model': 'hr.department','active_ids': [ref('hr.employee1'),ref('hr.employee2'),ref('hr.employee3')]}) data_dict = {'date_from': time.strftime('%Y-%m-01'), 'depts' : [(6,0,[ref('hr.dep_sales')])],'holiday_type' : 'Validated'} @@ -12,6 +13,7 @@ Print the HR Holidays(Summary Employee) Report through the wizard - !python {model: hr.holidays}: | + import time ctx={} ctx.update({'model': 'hr.employee','active_ids': [ref('hr.employee1'),ref('hr.employee2'),ref('hr.employee3')]}) data_dict = {'date_from': time.strftime('%Y-%m-01'), 'emp' : [(6,0,[ref('hr.employee1'),ref('hr.employee2'),ref('hr.employee3')])],'holiday_type' : 'Validated'} diff --git a/addons/hr_payroll/test/hr_payroll_report.yml b/addons/hr_payroll/test/hr_payroll_report.yml index a003538e62f..90866d84cfa 100644 --- a/addons/hr_payroll/test/hr_payroll_report.yml +++ b/addons/hr_payroll/test/hr_payroll_report.yml @@ -20,6 +20,7 @@ Print Employee Salary Statement through wizard - !python {model: hr.payslip}: | + import time ctx={} ctx.update({'model': 'hr.employee','active_ids': [ref('hr.employee1'),ref('hr.employee2'),ref('hr.employee3'),ref('hr_payroll.hr_employee_bonamy0')]}) data_dict = {'employee_ids': [(6,0,[ref('hr.employee1'),ref('hr.employee2'),ref('hr.employee3'),ref('hr_payroll.hr_employee_bonamy0')])], 'date_from': time.strftime('%Y-01-01'), 'date_to': time.strftime('%Y-%m-%d')} @@ -30,6 +31,7 @@ Print Salary Register through wizard - !python {model: hr.payslip}: | + import time ctx={} ctx.update({'model': 'hr.payslip','active_ids': [ref('hr.employee1'),ref('hr.employee2'),ref('hr.employee3'),ref('hr_payroll.hr_employee_bonamy0')]}) data_dict = {'employee_ids': [(6,0,[ref('hr.employee1'),ref('hr.employee2'),ref('hr.employee3'),ref('hr_payroll.hr_employee_bonamy0')])], 'date_from': time.strftime('%Y-01-01'), 'date_to': time.strftime('%Y-%m-%d')}