From 37dec8326df12f173cf7642fb9967bd6c7e678dc Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Sat, 9 Feb 2013 07:24:36 +0100 Subject: [PATCH] [FIX] import openerp.netsvc instead of netsvc in YML tests. bzr revid: vmt@openerp.com-20130209062436-e2wfh3sgoufrh77t --- addons/account/test/account_report.yml | 34 +++++++++---------- .../test/account_budget_report.yml | 6 ++-- .../document_ftp/test/document_ftp_test.yml | 8 ++--- .../test/hr_attendance_report.yml | 4 +-- .../hr_evaluation/test/test_hr_evaluation.yml | 2 +- .../hr_holidays/test/hr_holidays_report.yml | 4 +-- addons/hr_payroll/test/payslip.yml | 2 +- .../test/hr_payroll_account.yml | 4 +-- .../hr_timesheet/test/hr_timesheet_report.yml | 4 +-- addons/membership/test/test_membership.yml | 4 +-- addons/mrp/test/order_process.yml | 4 +-- .../test/point_of_sale_report.yml | 2 +- addons/product/test/product_pricelist.yml | 2 +- addons/sale_mrp/test/sale_mrp.yml | 2 +- .../sale_stock/test/picking_order_policy.yml | 4 +-- .../test/stock_location_pull_flow.yml | 4 +-- .../test/stock_location_push_flow.yml | 4 +-- addons/survey/test/survey_report.yml | 6 ++-- 18 files changed, 50 insertions(+), 50 deletions(-) diff --git a/addons/account/test/account_report.yml b/addons/account/test/account_report.yml index 7fe3095d47f..ee9b1784fc4 100644 --- a/addons/account/test/account_report.yml +++ b/addons/account/test/account_report.yml @@ -32,7 +32,7 @@ !python {model: account.account}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0')} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_aged_balance_view',wiz_data=data_dict, context=ctx, our_module='account') - Print the Account Balance Sheet in Normal mode @@ -40,7 +40,7 @@ !python {model: account.account}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0'), 'account_report_id': ref('account_financial_report_balancesheet0')} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_report',wiz_data=data_dict, context=ctx, our_module='account') - Print the Account Balance Report in Normal mode through the wizard - From Account Chart @@ -48,7 +48,7 @@ !python {model: account.account}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0')} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_balance_menu',wiz_data=data_dict, context=ctx, our_module='account') - Print the Central Journal Report - From Account @@ -58,7 +58,7 @@ ref('account.bank_journal'),ref('account.check_journal'),ref('account.cash_journal')] ctx={} data_dict = {'chart_account_id':ref('account.chart0')} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_central_journal',wiz_data=data_dict, context=ctx, our_module='account') - Print the General Journal Report - From Journal @@ -68,7 +68,7 @@ ref('account.bank_journal'),ref('account.check_journal'),ref('account.cash_journal')] ctx={} data_dict = {'chart_account_id':ref('account.chart0')} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_general_journal',wiz_data=data_dict, context=ctx, our_module='account') - Print the General Ledger Report in Normal Mode @@ -76,7 +76,7 @@ !python {model: account.account}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0'),'landscape':False} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_general_ledger_menu',wiz_data=data_dict, context=ctx, our_module='account') - Print the General Ledger Report in Landscape Mode @@ -84,7 +84,7 @@ !python {model: account.account}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0'),'landscape':True} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_general_ledger_menu',wiz_data=data_dict, context=ctx, our_module='account') - Print Journal Report - From Model @@ -93,7 +93,7 @@ journal_ids = [ref('account.sales_journal'),ref('account.refund_sales_journal'),ref('account.expenses_journal'),ref('account.refund_expenses_journal'),ref('account.bank_journal'),ref('account.check_journal'),ref('account.cash_journal')] ctx={} data_dict = {'chart_account_id':ref('account.chart0'), 'period_from':ref('period_1'), 'period_to':ref('period_12')} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_print_journal',wiz_data=data_dict, context=ctx, our_module='account') - Print the Partner Balance Report @@ -101,7 +101,7 @@ !python {model: account.account}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0')} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_partner_balance',wiz_data=data_dict, context=ctx, our_module='account') - Print the Partner Ledger Report @@ -109,7 +109,7 @@ !python {model: account.account}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0'),'page_split': True} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_partner_ledger',wiz_data=data_dict, context=ctx, our_module='account') - Print the Partner Ledger-Other Report @@ -117,7 +117,7 @@ !python {model: res.partner}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0'),'page_split': False} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_partner_ledger',wiz_data=data_dict, context=ctx, our_module='account') - Print the Profit-Loss Report in Normal Mode @@ -125,7 +125,7 @@ !python {model: account.account}: | ctx={} data_dict = {'chart_account_id':ref('account.chart0'), 'target_move': 'all', 'account_report_id': ref('account_financial_report_balancesheet0')} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_report',wiz_data=data_dict, context=ctx, our_module='account') - Print the Analytic Balance Report through the wizard @@ -134,7 +134,7 @@ ctx={} ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root')]}) data_dict = {} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_analytic_balance',wiz_data=data_dict, context=ctx, our_module='account') - @@ -144,7 +144,7 @@ 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 + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_analytic_cost',wiz_data=data_dict, context=ctx, our_module='account') - @@ -154,7 +154,7 @@ 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 + from openerp.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') - @@ -164,7 +164,7 @@ 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 + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_analytic_journal',wiz_data=data_dict, context=ctx, our_module='account') - @@ -174,5 +174,5 @@ ctx={} ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root')]}) data_dict = {} - from tools import test_reports + from openerp.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_budget/test/account_budget_report.yml b/addons/account_budget/test/account_budget_report.yml index 40b0175f045..bb8b8d36666 100644 --- a/addons/account_budget/test/account_budget_report.yml +++ b/addons/account_budget/test/account_budget_report.yml @@ -6,7 +6,7 @@ ctx={} ctx.update({'model': 'account.analytic.account','active_ids': [ref('account.analytic_root')]}) data_dict = {} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_budget_analytic',wiz_data=data_dict, context=ctx, our_module='account_budget') - @@ -17,7 +17,7 @@ ctx={} ctx.update({'model': 'account.budget.post','active_ids': [ref('account_budget.account_budget_post_sales0')]}) data_dict = {} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_budget_report',wiz_data=data_dict, context=ctx, our_module='account_budget') - @@ -28,6 +28,6 @@ ctx={} ctx.update({'model': 'account.budget.post','active_ids': [ref('account_budget.crossovered_budget_budgetoptimistic0')]}) data_dict = {} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_account_budget_crossvered_report',wiz_data=data_dict, context=ctx, our_module='account_budget') diff --git a/addons/document_ftp/test/document_ftp_test.yml b/addons/document_ftp/test/document_ftp_test.yml index b3ff2a89250..fafd5026ebf 100644 --- a/addons/document_ftp/test/document_ftp_test.yml +++ b/addons/document_ftp/test/document_ftp_test.yml @@ -42,8 +42,8 @@ - !python {model: ir.attachment}: | from ftplib import FTP - from tools.misc import detect_ip_addr - from tools import config + from openerp.tools.misc import detect_ip_addr + from openerp.tools import config ftp = FTP() if detect_ip_addr: host = config.get('ftp_server_host', detect_ip_addr()) @@ -71,8 +71,8 @@ - !python {model: ir.attachment}: | from ftplib import FTP - from tools.misc import detect_ip_addr - from tools import config + from openerp.tools.misc import detect_ip_addr + from openerp.tools import config ftp = FTP() if detect_ip_addr: host = config.get('ftp_server_host', detect_ip_addr()) diff --git a/addons/hr_attendance/test/hr_attendance_report.yml b/addons/hr_attendance/test/hr_attendance_report.yml index f9d78ebbecc..a5276b775d8 100644 --- a/addons/hr_attendance/test/hr_attendance_report.yml +++ b/addons/hr_attendance/test/hr_attendance_report.yml @@ -2,7 +2,7 @@ Print the HR Attendance Report By Month through the wizard - !python {model: hr.employee}: | - from tools import test_reports + from openerp.tools import test_reports ctx = {'model': 'hr.employee','active_ids': [ref('hr.employee_fp'),ref('hr.employee_qdp'),ref('hr.employee_al')]} data_dict = {} test_reports.try_report_action(cr, uid, 'action_hr_attendance_month',wiz_data=data_dict, context=ctx, our_module='hr_attendance') @@ -11,7 +11,7 @@ - !python {model: hr.employee}: | import time - from tools import test_reports + from openerp.tools import test_reports ctx = {'model': 'hr.employee','active_ids': [ref('hr.employee_fp')]} data_dict = {'init_date': time.strftime('%Y-01-01')} test_reports.try_report_action(cr, uid, 'action_hr_attendance_error',wiz_data=data_dict, context=ctx, our_module='hr_attendance') diff --git a/addons/hr_evaluation/test/test_hr_evaluation.yml b/addons/hr_evaluation/test/test_hr_evaluation.yml index a66731531fa..4997f4109c5 100644 --- a/addons/hr_evaluation/test/test_hr_evaluation.yml +++ b/addons/hr_evaluation/test/test_hr_evaluation.yml @@ -103,5 +103,5 @@ import netsvc, tools, os, time ctx={} data_dict={'state': 'done', 'rating': 2, 'employee_id': ref("hr.employee_fp")} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'hr_evaluation_evaluation_0',wiz_data=data_dict, context=ctx, our_module='hr_evaluation') \ No newline at end of file diff --git a/addons/hr_holidays/test/hr_holidays_report.yml b/addons/hr_holidays/test/hr_holidays_report.yml index 854ad34d5ff..19189e34461 100644 --- a/addons/hr_holidays/test/hr_holidays_report.yml +++ b/addons/hr_holidays/test/hr_holidays_report.yml @@ -6,7 +6,7 @@ ctx={} ctx.update({'model': 'hr.department','active_ids': [ref('hr.employee_fp'),ref('hr.employee_qdp'),ref('hr.employee_al')]}) data_dict = {'date_from': time.strftime('%Y-%m-01'), 'depts' : [(6,0,[ref('hr.dep_sales')])],'holiday_type' : 'Approved'} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_hr_holidays_summary_dept',wiz_data=data_dict, context=ctx, our_module='hr_holidays') - @@ -17,6 +17,6 @@ ctx={} ctx.update({'model': 'hr.employee','active_ids': [ref('hr.employee_fp'),ref('hr.employee_qdp'),ref('hr.employee_al')]}) data_dict = {'date_from': time.strftime('%Y-%m-01'), 'emp' : [(6,0,[ref('hr.employee_fp'),ref('hr.employee_qdp'),ref('hr.employee_al')])],'holiday_type' : 'Approved'} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_hr_holidays_summary_employee',wiz_data=data_dict, context=ctx, our_module='hr_holidays') diff --git a/addons/hr_payroll/test/payslip.yml b/addons/hr_payroll/test/payslip.yml index c3ad3a1a85c..0e60a5b6af4 100644 --- a/addons/hr_payroll/test/payslip.yml +++ b/addons/hr_payroll/test/payslip.yml @@ -68,7 +68,7 @@ I verify that the payslip is in done state - !python {model: hr.payslip}: | - from tools.translate import _ + from openerp.tools.translate import _ payslip_brw=self.browse(cr, uid, ref("hr_payslip_0")) assert(payslip_brw.state == 'done'), _('State not changed!') - diff --git a/addons/hr_payroll_account/test/hr_payroll_account.yml b/addons/hr_payroll_account/test/hr_payroll_account.yml index 5abf7d5dffa..e865f066a79 100644 --- a/addons/hr_payroll_account/test/hr_payroll_account.yml +++ b/addons/hr_payroll_account/test/hr_payroll_account.yml @@ -89,7 +89,7 @@ I verify the payslip is in draft state. - !python {model: hr.payslip}: | - from tools.translate import _ + from openerp.tools.translate import _ payslip_brw=self.browse(cr, uid, ref("hr_payslip_0")) assert(payslip_brw.state == 'draft'), _('State not changed!') - @@ -122,7 +122,7 @@ I verify that the payslip is in done state. - !python {model: hr.payslip}: | - from tools.translate import _ + from openerp.tools.translate import _ payslip_brw=self.browse(cr, uid, ref("hr_payslip_0")) assert(payslip_brw.state == 'done'), _('State not changed!') diff --git a/addons/hr_timesheet/test/hr_timesheet_report.yml b/addons/hr_timesheet/test/hr_timesheet_report.yml index ae5b294aa16..30fb1c642ba 100644 --- a/addons/hr_timesheet/test/hr_timesheet_report.yml +++ b/addons/hr_timesheet/test/hr_timesheet_report.yml @@ -6,7 +6,7 @@ ctx={} ctx.update({'model': 'hr.employee','active_ids': []}) data_dict = {'month': time.gmtime()[1], 'year': time.gmtime()[0], 'employee_id' : ref('hr.employee_fp')} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_hr_timesheet_employee',wiz_data=data_dict, context=ctx, our_module='hr_timesheet') - @@ -17,5 +17,5 @@ ctx={} ctx.update({'model': 'hr.employee','active_ids': []}) data_dict = {'month': time.gmtime()[1], 'year': time.gmtime()[0], 'employee_ids' : [(6,0,[ref('hr.employee_fp'),ref('hr.employee_qdp'),ref('hr.employee_al')])]} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_hr_timesheet_users',wiz_data=data_dict, context=ctx, our_module='hr_timesheet') diff --git a/addons/membership/test/test_membership.yml b/addons/membership/test/test_membership.yml index 357fcbcfc3e..f33a1767d14 100644 --- a/addons/membership/test/test_membership.yml +++ b/addons/membership/test/test_membership.yml @@ -32,7 +32,7 @@ - !python {model: res.partner}: | import netsvc - from tools.translate import _ + from openerp.tools.translate import _ invoice_pool = self.pool.get('account.invoice') partner_pool = self.pool.get('res.partner') membership_line_pool = self.pool.get('membership.membership_line') @@ -106,7 +106,7 @@ I'm doing to make credit note of invoice which is paid by "Seagate" to cancel membership. - !python {model: account.invoice}: | - from tools.translate import _ + from openerp.tools.translate import _ invoice_pool = self.pool.get('account.invoice') partner_pool = self.pool.get('res.partner') membership_line_pool = self.pool.get('membership.membership_line') diff --git a/addons/mrp/test/order_process.yml b/addons/mrp/test/order_process.yml index e672517c5a0..64162291290 100644 --- a/addons/mrp/test/order_process.yml +++ b/addons/mrp/test/order_process.yml @@ -14,7 +14,7 @@ Now I check workcenter lines. - !python {model: mrp.production}: | - from tools import float_compare + from openerp.tools import float_compare def assert_equals(value1, value2, msg, float_compare=float_compare): assert float_compare(value1, value2, precision_digits=2) == 0, msg order = self.browse(cr, uid, ref("mrp_production_test1"), context=context) @@ -234,6 +234,6 @@ ctx = context.copy() ctx.update({'model': 'mrp.workcenter','active_ids': [ref('mrp_workcenter_0'),ref('mrp_workcenter_1')]}) data_dict = {'time_unit': 'day', 'measure_unit': 'hours'} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_mrp_workcenter_load_wizard',wiz_data=data_dict, context=ctx, our_module='mrp') diff --git a/addons/point_of_sale/test/point_of_sale_report.yml b/addons/point_of_sale/test/point_of_sale_report.yml index 0d6d458e02f..f89b34dbeba 100644 --- a/addons/point_of_sale/test/point_of_sale_report.yml +++ b/addons/point_of_sale/test/point_of_sale_report.yml @@ -42,7 +42,7 @@ ctx={} ctx.update({'model': 'ir.ui.menu','active_ids': []}) data_dict = {'date_start': time.strftime('%Y-%m-%d'), 'date_end': time.strftime('%Y-%m-%d'), 'user_ids': [(6,0,[ref('base.user_root')])]} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_report_pos_details',wiz_data=data_dict, context=ctx, our_module='point_of_sale') - diff --git a/addons/product/test/product_pricelist.yml b/addons/product/test/product_pricelist.yml index 66e256d4cd1..0b4bed18a82 100644 --- a/addons/product/test/product_pricelist.yml +++ b/addons/product/test/product_pricelist.yml @@ -71,5 +71,5 @@ 'qty5': 30, 'price_list':ref('customer_pricelist'), } - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_product_price_list',wiz_data=data_dict, context=ctx, our_module='product') diff --git a/addons/sale_mrp/test/sale_mrp.yml b/addons/sale_mrp/test/sale_mrp.yml index 6fd64301af2..2aaa395139c 100644 --- a/addons/sale_mrp/test/sale_mrp.yml +++ b/addons/sale_mrp/test/sale_mrp.yml @@ -92,7 +92,7 @@ I verify that a procurement has been generated for sale order - !python {model: procurement.order}: | - from tools.translate import _ + from openerp.tools.translate import _ sale_order_obj = self.pool.get('sale.order') so = sale_order_obj.browse(cr, uid, ref("sale_order_so0")) proc_ids = self.search(cr, uid, [('origin','=',so.name)]) diff --git a/addons/sale_stock/test/picking_order_policy.yml b/addons/sale_stock/test/picking_order_policy.yml index 800c131e288..83b7191e70e 100644 --- a/addons/sale_stock/test/picking_order_policy.yml +++ b/addons/sale_stock/test/picking_order_policy.yml @@ -22,7 +22,7 @@ !python {model: sale.order}: | from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta - from tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT + from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT order = self.browse(cr, uid, ref("sale.sale_order_6")) for order_line in order.order_line: procurement = order_line.procurement_id @@ -44,7 +44,7 @@ !python {model: sale.order}: | from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta - from tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT + from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT sale_order = self.browse(cr, uid, ref("sale.sale_order_6")) assert sale_order.picking_ids, "Delivery order is not created." for picking in sale_order.picking_ids: diff --git a/addons/stock_location/test/stock_location_pull_flow.yml b/addons/stock_location/test/stock_location_pull_flow.yml index 0ff1b5d3af8..a87ed2cb30c 100644 --- a/addons/stock_location/test/stock_location_pull_flow.yml +++ b/addons/stock_location/test/stock_location_pull_flow.yml @@ -192,13 +192,13 @@ I check the new procurement order has been created . - !python {model: procurement.order }: | - from tools.translate import _ + from openerp.tools.translate import _ procurement_ids=self.search(cr, uid, [('name','=','E001')]) assert len(procurement_ids), "Procurement order hasn't Created." - I check the Outgoing Picking is created for source location Birmingham Shop and destination Chicago shop. - !python {model: stock.picking }: | - from tools.translate import _ + from openerp.tools.translate import _ picking_id = self.search(cr, uid, [('origin','=','Testing pulled flow:E001'),('type','=','out')]) assert len(picking_id), "Picking hasn't Created." diff --git a/addons/stock_location/test/stock_location_push_flow.yml b/addons/stock_location/test/stock_location_push_flow.yml index efd2daaf272..27164848f77 100644 --- a/addons/stock_location/test/stock_location_push_flow.yml +++ b/addons/stock_location/test/stock_location_push_flow.yml @@ -94,7 +94,7 @@ I check the move is in waiting state. - !python {model: stock.picking }: | - from tools.translate import _ + from openerp.tools.translate import _ picking_id = self.search(cr, uid, [('origin','=','Pushed Flow Test'),('type','=','out')]) if picking_id: pick=self.browse(cr,uid,picking_id[0]) @@ -123,7 +123,7 @@ I check the Outgoing Orders is automatically done. - !python {model: stock.picking }: | - from tools.translate import _ + from openerp.tools.translate import _ picking_id = self.search(cr, uid, [('origin','=','Pushed Flow Test'),('type','=','out')]) if picking_id: pick=self.browse(cr,uid,picking_id[0]) diff --git a/addons/survey/test/survey_report.yml b/addons/survey/test/survey_report.yml index cf225dfcf6e..36eff699075 100644 --- a/addons/survey/test/survey_report.yml +++ b/addons/survey/test/survey_report.yml @@ -4,7 +4,7 @@ !python {model: survey}: | ctx = {'model': 'survey','active_ids': [(6,0,[ref('survey_partner_feedback')])]} data_dict = {'response_ids' : [(6,0,[ref('survey.survey_partner_feedback')])], 'page_number' : True, 'without_pagebreak': True} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_view_survey_print_answer',wiz_data=data_dict, context=ctx, our_module='survey') - @@ -13,7 +13,7 @@ !python {model: survey}: | ctx = {'model': 'survey','active_ids': [(6,0,[ref('survey_partner_feedback')])]} data_dict = {'survey_ids' : [(6,0,[ref('survey.survey_partner_feedback')])]} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_view_survey_print_statistics',wiz_data=data_dict, context=ctx, our_module='survey') - @@ -22,5 +22,5 @@ !python {model: survey}: | ctx = {'model': 'survey','active_ids': [(6,0,[ref('survey_partner_feedback')])]} data_dict = {'survey_ids' : [(6,0,[ref('survey.survey_partner_feedback')])], 'page_number' : True, 'without_pagebreak': True} - from tools import test_reports + from openerp.tools import test_reports test_reports.try_report_action(cr, uid, 'action_view_survey_print',wiz_data=data_dict, context=ctx, our_module='survey')