[FIX] buildbot#591: fix buildbot failure on project_timesheet, report_intrastat module

bzr revid: hmo@tinyerp.com-20101211125229-2yh6pz21e1s59z0m
This commit is contained in:
Harry (OpenERP) 2010-12-11 18:22:29 +05:30
parent 71def15f13
commit 7b0c7b2f12
3 changed files with 8 additions and 8 deletions

View File

@ -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
- len(timesheet_ids) > 0

View File

@ -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',

View File

@ -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)