diff --git a/addons/account/__openerp__.py b/addons/account/__openerp__.py index 30db641860d..06c3ed15a93 100644 --- a/addons/account/__openerp__.py +++ b/addons/account/__openerp__.py @@ -133,7 +133,7 @@ module named account_voucher. 'test/account_bank_statement.yml', 'test/account_cash_statement.yml', 'test/account_report.yml', - 'project/test/project_report.yml', + ], 'installable': True, diff --git a/addons/account/project/test/project_report.yml b/addons/account/project/test/project_report.yml deleted file mode 100644 index f7753fc8871..00000000000 --- a/addons/account/project/test/project_report.yml +++ /dev/null @@ -1,54 +0,0 @@ -- - Print the Analytic Balance Report through the wizard -- - !python {model: account.analytic.account}: | - import netsvc, tools, os, time - ctx={} - ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root')]}) - data_dict = {} - from tools import test_reports - test_reports.try_report_action(cr, uid, 'action_account_analytic_balance',wiz_data=data_dict, context=ctx, our_module='account') - -- - Print the Cost Ledger Report through the wizard -- - !python {model: account.analytic.account}: | - import netsvc, tools, os, time - ctx={} - ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root'),ref('account.analytic_absences'),ref('account.analytic_internal'),ref('account.analytic_our_super_product')]}) - data_dict = {} - from tools import test_reports - test_reports.try_report_action(cr, uid, 'action_account_analytic_cost',wiz_data=data_dict, context=ctx, our_module='account') - -- - Print the Cost Ledger(Only Quantities) Report through the wizard -- - !python {model: account.analytic.account}: | - import netsvc, tools, os, time - ctx={} - ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root'),ref('account.analytic_absences'),ref('account.analytic_internal'),ref('account.analytic_our_super_product')]}) - data_dict = {} - from tools import test_reports - test_reports.try_report_action(cr, uid, 'action_account_analytic_cost_ledger_journal',wiz_data=data_dict, context=ctx, our_module='account') - -- - Print the Analytic Journal Report through the wizard -- - !python {model: account.analytic.journal}: | - import netsvc, tools, os, time - ctx={} - ctx.update({'model': 'account.analytic.journal','active_ids': [ref('account.cose_journal_sale'), ref('account.exp'), ref('account.sit')]}) - data_dict = {} - from tools import test_reports - test_reports.try_report_action(cr, uid, 'action_account_analytic_journal',wiz_data=data_dict, context=ctx, our_module='account') - -- - Print the Inverted Analytic Balance Report through the wizard -- - !python {model: account.analytic.account}: | - import netsvc, tools, os, time - ctx={} - ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root')]}) - data_dict = {} - from tools import test_reports - test_reports.try_report_action(cr, uid, 'action_account_analytic_invert_balance',wiz_data=data_dict, context=ctx, our_module='account') diff --git a/addons/account/test/account_report.yml b/addons/account/test/account_report.yml index 328651ee8a3..312db44cd0c 100644 --- a/addons/account/test/account_report.yml +++ b/addons/account/test/account_report.yml @@ -166,4 +166,53 @@ ctx.update({'model': 'account.account','active_ids':[ref('account.chart0')]}) data_dict = {'chart_account_id':ref('account.chart0'),'display_type': True} from tools import test_reports - test_reports.try_report_action(cr, uid, 'action_account_pl_report',wiz_data=data_dict, context=ctx, our_module='account') + test_reports.try_report_action(cr, uid, 'action_account_pl_report',wiz_data=data_dict, context=ctx, our_module='account') +- + Print the Analytic Balance Report through the wizard +- + !python {model: account.analytic.account}: | + ctx={} + ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root')]}) + data_dict = {} + from tools import test_reports + test_reports.try_report_action(cr, uid, 'action_account_analytic_balance',wiz_data=data_dict, context=ctx, our_module='account') + +- + Print the Cost Ledger Report through the wizard +- + !python {model: account.analytic.account}: | + ctx={} + ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root'),ref('account.analytic_absences'),ref('account.analytic_internal'),ref('account.analytic_our_super_product')]}) + data_dict = {} + from tools import test_reports + test_reports.try_report_action(cr, uid, 'action_account_analytic_cost',wiz_data=data_dict, context=ctx, our_module='account') + +- + Print the Cost Ledger(Only Quantities) Report through the wizard +- + !python {model: account.analytic.account}: | + ctx={} + ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root'),ref('account.analytic_absences'),ref('account.analytic_internal'),ref('account.analytic_our_super_product')]}) + data_dict = {} + from tools import test_reports + test_reports.try_report_action(cr, uid, 'action_account_analytic_cost_ledger_journal',wiz_data=data_dict, context=ctx, our_module='account') + +- + Print the Analytic Journal Report through the wizard +- + !python {model: account.analytic.journal}: | + ctx={} + ctx.update({'model': 'account.analytic.journal','active_ids': [ref('account.cose_journal_sale'), ref('account.exp'), ref('account.sit')]}) + data_dict = {} + from tools import test_reports + test_reports.try_report_action(cr, uid, 'action_account_analytic_journal',wiz_data=data_dict, context=ctx, our_module='account') + +- + Print the Inverted Analytic Balance Report through the wizard +- + !python {model: account.analytic.account}: | + ctx={} + ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root')]}) + data_dict = {} + from tools import test_reports + test_reports.try_report_action(cr, uid, 'action_account_analytic_invert_balance',wiz_data=data_dict, context=ctx, our_module='account') diff --git a/addons/account_invoice_layout/test/account_invoice_layout_report.yml b/addons/account_invoice_layout/test/account_invoice_layout_report.yml index 277ee73382c..91967358a3d 100644 --- a/addons/account_invoice_layout/test/account_invoice_layout_report.yml +++ b/addons/account_invoice_layout/test/account_invoice_layout_report.yml @@ -24,7 +24,6 @@ Print the Invoice Layout Report with Message through wizard - !python {model: account.invoice}: | - import netsvc, tools, os, time ctx={} ctx.update({'model': 'account.invoice','active_ids': [ref('test_invoice_1')]}) data_dict = {'message':ref('account_invoice_layout.demo_message1')} diff --git a/addons/hr_attendance/test/hr_attendance_report.yml b/addons/hr_attendance/test/hr_attendance_report.yml index 99e70614b13..9e420e117d8 100644 --- a/addons/hr_attendance/test/hr_attendance_report.yml +++ b/addons/hr_attendance/test/hr_attendance_report.yml @@ -2,7 +2,6 @@ Print the HR Attendance Report By Month through the wizard - !python {model: hr.employee}: | - import netsvc, tools, os, time ctx={} ctx.update({'model': 'hr.employee','active_ids': [ref('hr.employee1'),ref('hr.employee2'),ref('hr.employee3')]}) data_dict = {} @@ -12,7 +11,6 @@ Print HR Attendance Error Report through the wizard - !python {model: hr.employee}: | - 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')} diff --git a/addons/hr_payroll/test/hr_payroll_report.yml b/addons/hr_payroll/test/hr_payroll_report.yml index 6e30aba437e..a003538e62f 100644 --- a/addons/hr_payroll/test/hr_payroll_report.yml +++ b/addons/hr_payroll/test/hr_payroll_report.yml @@ -20,7 +20,6 @@ Print Employee Salary Statement through wizard - !python {model: hr.payslip}: | - import netsvc, tools, os, 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')} @@ -31,7 +30,6 @@ Print Salary Register through wizard - !python {model: hr.payslip}: | - import netsvc, tools, os, 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')} diff --git a/addons/mrp/test/mrp_report.yml b/addons/mrp/test/mrp_report.yml index cadef4d0863..9511da617ca 100644 --- a/addons/mrp/test/mrp_report.yml +++ b/addons/mrp/test/mrp_report.yml @@ -20,7 +20,6 @@ Print Product Price Report through the wizard - !python {model: product.product}: | - import netsvc, tools, os, time ctx={} ctx.update({'model': 'product.product','active_ids': [1,2,3,5]}) data_dict = {'number': 1} @@ -31,7 +30,6 @@ Print Workcenter Load Report through the wizard - !python {model: mrp.workcenter}: | - import netsvc, tools, os, time ctx={} ctx.update({'model': 'mrp.workcenter','active_ids': [ref('mrp_workcenter_0'),ref('mrp_workcenter_1')]}) data_dict = {'time_unit': 'day', 'measure_unit': 'hours'} diff --git a/addons/product/test/product_report.yml b/addons/product/test/product_report.yml index 331ea8b7db4..397c2c9d0b6 100644 --- a/addons/product/test/product_report.yml +++ b/addons/product/test/product_report.yml @@ -2,7 +2,6 @@ Print the Products Pricelists Report through the wizard - !python {model: product.product}: | - import netsvc, tools, os, time ctx={} ctx.update({'model': 'product.product','active_ids': [ref('product.product_product_pc1'), ref('product.product_product_pc3')]}) data_dict = {'qty1': 1, diff --git a/addons/survey/test/survey_report.yml b/addons/survey/test/survey_report.yml index 2270a37965f..3b54feb2354 100644 --- a/addons/survey/test/survey_report.yml +++ b/addons/survey/test/survey_report.yml @@ -2,7 +2,6 @@ Print the Survey Browse Response Report through the wizard - !python {model: survey}: | - import netsvc, tools, os, time ctx={} ctx.update({'model': 'survey','active_ids': [(6,0,[ref('survey.survey_partner_feedback')])]}) data_dict = {'response_ids' : [(6,0,[ref('survey.survey_partner_feedback')])], 'page_number' : True, 'without_pagebreak': True} @@ -13,7 +12,6 @@ Print the Survey Analysis Report through the wizard - !python {model: survey}: | - import netsvc, tools, os, time ctx={} ctx.update({'model': 'survey','active_ids': [(6,0,[ref('survey.survey_partner_feedback')])]}) data_dict = {'survey_ids' : [(6,0,[ref('survey.survey_partner_feedback')])]} @@ -24,7 +22,6 @@ Print the Survey Form Report through the wizard - !python {model: survey}: | - import netsvc, tools, os, time ctx={} ctx.update({'model': 'survey','active_ids': [(6,0,[ref('survey.survey_partner_feedback')])]}) data_dict = {'survey_ids' : [(6,0,[ref('survey.survey_partner_feedback')])], 'page_number' : True, 'without_pagebreak': True}