11 lines
486 B
YAML
11 lines
486 B
YAML
-
|
|
Print the report_webkit demo report.
|
|
-
|
|
!python {model: ir.actions.report.xml}: |
|
|
import os
|
|
from openerp import netsvc, tools
|
|
ids = self.pool['ir.actions.report.xml'].search(cr, uid, [], {})
|
|
(data, format) = netsvc.LocalService('report.webkit.ir.actions.report.xml').create(cr, uid, ids, {}, {})
|
|
if tools.config['test_report_directory']:
|
|
file(os.path.join(tools.config['test_report_directory'], 'report_webkit_demo_report.'+format), 'wb+').write(data)
|