[FIX] purchase order containing service product not creating invoice of service product
[odoo/odoo.git] / addons / l10n_lu / test / l10n_lu_report.yml
1 -
2   It is demo data for the account.tax.code
3 -
4  !record {model: account.tax.code, id: account_tax_code_id_r1}:
5     name: a
6
7 -
8   In order to test the PDF reports defined on a l10u_lu, we will print a VAT Report
9 -
10   !python {model: res.partner}: |
11     import netsvc, tools, os
12     (data, format) = netsvc.LocalService('report.l10n_lu.tax.report.print').create(cr, uid, [], {'model':'ir.ui.menu', 'form':{'tax_code_id': ref('account_tax_code_id_r1'), 'period_id': ref('account.period_1')}}, {})
13     if tools.config['test_report_directory']:
14         file(os.path.join(tools.config['test_report_directory'], 'l10n_lu-vat_report.'+format), 'wb+').write(data)
15    
16