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
'intrastat_report.xml'
],
'demo_xml': [],
- 'test': ['test/report_instratat_report.yml'],
+ 'test': ['test/report_intrastat_report.yml'],
'installable': True,
'active': False,
'certificate': '0056982189085',
+++ /dev/null
--
- 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)
--- /dev/null
+-
+ 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)