[imp] made ids in report overridable by report action
bzr revid: nicolas.vanhoren@openerp.com-20110908095544-77pottqwvarnh2gq
This commit is contained in:
parent
4e0412f0c3
commit
cb009f218b
|
@ -1364,11 +1364,14 @@ class Reports(View):
|
|||
req.context or {}, action[ "context"]))
|
||||
|
||||
report_data = {}
|
||||
report_ids = context["active_ids"]
|
||||
if 'report_type' in action:
|
||||
report_data['report_type'] = action['report_type']
|
||||
if 'datas' in action and 'form' in action['datas']:
|
||||
report_data['form'] = action['datas']['form']
|
||||
report_ids = context["active_ids"]
|
||||
if 'datas' in action:
|
||||
if 'form' in action['datas']:
|
||||
report_data['form'] = action['datas']['form']
|
||||
if 'ids' in action['datas']:
|
||||
report_ids = action['datas']['ids']
|
||||
report_id = report_srv.report(
|
||||
req.session._db, req.session._uid, req.session._password,
|
||||
action["report_name"], report_ids,
|
||||
|
|
Loading…
Reference in New Issue