def render_report(cr, uid, ids, name, data, context=None):
 env = api.Environment(cr, uid, (context or {}))
 return env['ir.actions.report.xml'].render_report(ids, name, data)

def render_report ( cr , uid , ids , name , data , context = None ) : env = api . Environment ( cr , uid , ( context or { } ) ) return env [ 'ir.actions.report.xml' ] . render_report ( ids , name , data )
helper to call ir .