summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2013-03-22 17:22:51 +0100
committerVo Minh Thu <vmt@openerp.com>2013-03-22 17:22:51 +0100
commit010d8044fe40d3ed402dff0cf8b1c7306a92b00a (patch)
treef943574265f07b6512f90e8264204ae292fcee24
parentb08d7ef6bd0f1b8a36d82e238d563a37c7fa9057 (diff)
[REF] ir.actions.report.xml: renamed ids to res_ids because those are not the self model IDs.
bzr revid: vmt@openerp.com-20130322162251-j0f3eobpc6oh4il1
-rw-r--r--openerp/addons/base/ir/ir_actions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openerp/addons/base/ir/ir_actions.py b/openerp/addons/base/ir/ir_actions.py
index b32617d0134..4b4ed6fe799 100644
--- a/openerp/addons/base/ir/ir_actions.py
+++ b/openerp/addons/base/ir/ir_actions.py
@@ -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'