2010-09-16 15:38:14 +00:00
|
|
|
-
|
2011-12-22 06:02:53 +00:00
|
|
|
In order to test the PDF reports defined on Account Payment, I print a Payment Order report.
|
2011-12-19 06:52:14 +00:00
|
|
|
-
|
2010-09-16 15:38:14 +00:00
|
|
|
!python {model: payment.order}: |
|
|
|
|
import netsvc, tools, os
|
2011-12-19 06:52:14 +00:00
|
|
|
(data, format) = netsvc.LocalService('report.payment.order').create(cr, uid, [ref('payment_order_1')], {}, {})
|
2010-09-16 15:38:14 +00:00
|
|
|
if tools.config['test_report_directory']:
|
2011-12-22 06:02:53 +00:00
|
|
|
file(os.path.join(tools.config['test_report_directory'], 'account_payment-payment_order_report.'+format), 'wb+').write(data)
|