[IMP]account:improves the account_report.yml file

bzr revid: azaz.201186@gmail.com-20101028071317-s1taf3jny0jjesd2
This commit is contained in:
saz-OpenERP
2010-10-28 12:43:17 +05:30
parent 2ccfe18b27
commit 17aa989125
2 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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',
+9 -9
View File
@@ -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