def print_invoice(self, cr, uid, ids, context=None): rep_obj = self.pool.get('ir.actions.report.xml') res = rep_obj.pentaho_report_action(cr, uid, 'report_name', ids,None,None) return res
report_name = the name of report you have uploaded in openerp server
You need to install pentaho reports for openerp and you need to add the report under pentaho report that will be stored in database
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 5/28/13, 6:19 AM|
|Seen: 2803 times|
|Last updated: 3/16/15, 8:10 AM|