diff --git a/addons/account/__openerp__.py b/addons/account/__openerp__.py index 6b145f6e974..c170076cfc8 100644 --- a/addons/account/__openerp__.py +++ b/addons/account/__openerp__.py @@ -119,7 +119,7 @@ module named account_voucher. 'project/project_demo.xml', 'project/analytic_account_demo.xml', 'demo/account_minimal.xml', - 'account_unit_test.xml', +# 'account_unit_test.xml', ], 'test': [ 'test/account_customer_invoice.yml', diff --git a/addons/account/test/account_report.yml b/addons/account/test/account_report.yml index 73e7d669f65..67d1d8560eb 100644 --- a/addons/account/test/account_report.yml +++ b/addons/account/test/account_report.yml @@ -4,7 +4,7 @@ - !python {model: account.invoice}: | import netsvc, tools, os - (data, format) = netsvc.LocalService('report.account.invoice').create(cr, uid, [ref('account.test_invoice_1')], {}, {}) + (data, format) = netsvc.LocalService('report.account.invoice').create(cr, uid, [ref('account.account_invoice_customer0')], {}, {}) if tools.config['test_report_directory']: file(os.path.join(tools.config['test_report_directory'], 'account-invoice.'+format), 'wb+').write(data) @@ -51,14 +51,14 @@ # if tools.config['test_report_directory']: # file(os.path.join(tools.config['test_report_directory'], 'account-vat-declaration.'+format), 'wb+').write(data) -- - In order to test the PDF reports defined on an invoice, we will print an invoice -- - !python {model: account.invoice}: | - import netsvc, tools, os - (data, format) = netsvc.LocalService('report.account.invoice').create(cr, uid, [ref('account.test_invoice_1')], {}, {}) - if tools.config['test_report_directory']: - file(os.path.join(tools.config['test_report_directory'], 'account-invoice.'+format), 'wb+').write(data) +#- +# In order to test the PDF reports defined on an invoice, we will print an invoice +#- +# !python {model: account.invoice}: | +# import netsvc, tools, os +# (data, format) = netsvc.LocalService('report.account.invoice').create(cr, uid, [ref ('account.test_invoice_1')], {}, {}) +# if tools.config['test_report_directory']: +# file(os.path.join(tools.config['test_report_directory'], 'account-invoice.'+format), 'wb+').write(data) - Print the Aged Partner Balance Report