[REF] ir.actions.report.xml: renamed ids to res_ids because those are not the self...
authorVo Minh Thu <vmt@openerp.com>
Fri, 22 Mar 2013 16:22:51 +0000 (17:22 +0100)
committerVo Minh Thu <vmt@openerp.com>
Fri, 22 Mar 2013 16:22:51 +0000 (17:22 +0100)
bzr revid: vmt@openerp.com-20130322162251-j0f3eobpc6oh4il1

openerp/addons/base/ir/ir_actions.py

index b32617d..4b4ed6f 100644 (file)
@@ -85,7 +85,7 @@ class report_xml(osv.osv):
                 res[report.id] = False
         return res
 
-    def render_report(self, cr, uid, ids, name, data, context=None):
+    def render_report(self, cr, uid, res_ids, name, data, context=None):
         """
         Look up a report definition and render the report for the provided IDs.
         """
@@ -119,7 +119,7 @@ class report_xml(osv.osv):
             else:
                 raise Exception, "Required report does not exist: %s" % r
 
-        return new_report.create(cr, uid, ids, data, context)
+        return new_report.create(cr, uid, res_ids, data, context)
 
     _name = 'ir.actions.report.xml'
     _inherit = 'ir.actions.actions'