[FIX] buildbot#591: fix buildbot failure on project_timesheet, report_intrastat module
authorHarry (OpenERP) <hmo@tinyerp.com>
Sat, 11 Dec 2010 12:52:29 +0000 (18:22 +0530)
committerHarry (OpenERP) <hmo@tinyerp.com>
Sat, 11 Dec 2010 12:52:29 +0000 (18:22 +0530)
bzr revid: hmo@tinyerp.com-20101211125229-2yh6pz21e1s59z0m

addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml
addons/report_intrastat/__openerp__.py
addons/report_intrastat/test/report_instratat_report.yml [deleted file]
addons/report_intrastat/test/report_intrastat_report.yml [new file with mode: 0644]

index 76762ef..7b69627 100644 (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
   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             
index b4dc9b5..47c4c93 100644 (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',
diff --git a/addons/report_intrastat/test/report_instratat_report.yml b/addons/report_intrastat/test/report_instratat_report.yml
deleted file mode 100644 (file)
index 858f933..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
--
-  In order to test the PDF reports defined using report_instratat module, we will create a invoice record
--
-  !record {model: account.invoice, id: test_invoice_1}:
-       currency_id: base.EUR
-    company_id: base.main_company
-    address_invoice_id: base.res_partner_address_tang
-    partner_id: base.res_partner_asus
-    state: draft
-    type: out_invoice
-    account_id: account.a_recv
-    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
--
-  !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)
diff --git a/addons/report_intrastat/test/report_intrastat_report.yml b/addons/report_intrastat/test/report_intrastat_report.yml
new file mode 100644 (file)
index 0000000..2c85007
--- /dev/null
@@ -0,0 +1,21 @@
+-
+  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
+    company_id: base.main_company
+    address_invoice_id: base.res_partner_address_tang
+    partner_id: base.res_partner_asus
+    state: draft
+    type: out_invoice
+    account_id: account.a_recv
+    name: Test invoice 1
+    address_contact_id: base.res_partner_address_tang
+-
+  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_intrastat-intrastat_report.'+format), 'wb+').write(data)