From 7b0c7b2f125b110415b2fb250d6e9e2a6b08019e Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Sat, 11 Dec 2010 18:22:29 +0530 Subject: [PATCH] [FIX] buildbot#591: fix buildbot failure on project_timesheet, report_intrastat module bzr revid: hmo@tinyerp.com-20101211125229-2yh6pz21e1s59z0m --- .../test/worktask_entry_to_timesheetline_entry.yml | 6 +++--- addons/report_intrastat/__openerp__.py | 2 +- ...t_instratat_report.yml => report_intrastat_report.yml} | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) rename addons/report_intrastat/test/{report_instratat_report.yml => report_intrastat_report.yml} (68%) diff --git a/addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml b/addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml index 76762ef8c28..7b69627a00a 100644 --- a/addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml +++ b/addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml @@ -22,8 +22,8 @@ standard_price: 1.0 supply_method: buy type: service - uom_id: product.product_uom_unit - uom_po_id: product.product_uom_unit + uom_id: product.uom_hour + uom_po_id: product.uom_hour volume: 0.0 warranty: 0.0 weight: 0.0 @@ -101,4 +101,4 @@ Check for timesheet_ids in HR manager's timesheet - !assert {model: hr_timesheet_sheet.sheet, id: hr_timesheet_sheet_sheet_sheetforhrmanager0, string: After hr manager's work task, length of timesheet line of current timesheet must be greater then 1}: - - len(timesheet_ids) > 0 \ No newline at end of file + - len(timesheet_ids) > 0 diff --git a/addons/report_intrastat/__openerp__.py b/addons/report_intrastat/__openerp__.py index b4dc9b52c89..47c4c93a211 100644 --- a/addons/report_intrastat/__openerp__.py +++ b/addons/report_intrastat/__openerp__.py @@ -37,7 +37,7 @@ 'intrastat_report.xml' ], 'demo_xml': [], - 'test': ['test/report_instratat_report.yml'], + 'test': ['test/report_intrastat_report.yml'], 'installable': True, 'active': False, 'certificate': '0056982189085', diff --git a/addons/report_intrastat/test/report_instratat_report.yml b/addons/report_intrastat/test/report_intrastat_report.yml similarity index 68% rename from addons/report_intrastat/test/report_instratat_report.yml rename to addons/report_intrastat/test/report_intrastat_report.yml index 858f9330358..2c85007e70c 100644 --- a/addons/report_intrastat/test/report_instratat_report.yml +++ b/addons/report_intrastat/test/report_intrastat_report.yml @@ -1,8 +1,8 @@ - - In order to test the PDF reports defined using report_instratat module, we will create a invoice record + In order to test the PDF reports defined on an invoice, we will create a Invoice Record - !record {model: account.invoice, id: test_invoice_1}: - currency_id: base.EUR + currency_id: base.EUR company_id: base.main_company address_invoice_id: base.res_partner_address_tang partner_id: base.res_partner_asus @@ -12,10 +12,10 @@ name: Test invoice 1 address_contact_id: base.res_partner_address_tang - - In order to test the PDF reports defined using report_instratat module, we print a Instratat Report + In order to test the PDF reports defined using report_intrastat module, we print a Intrastat Report - !python {model: account.invoice}: | import netsvc, tools, os (data, format) = netsvc.LocalService('report.account.invoice.intrastat').create(cr, uid, [ref('test_invoice_1')], {}, {}) if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'report_instratat-instrastat_report.'+format), 'wb+').write(data) + file(os.path.join(tools.config['test_report_directory'], 'report_intrastat-intrastat_report.'+format), 'wb+').write(data)