[imp] updated datas in report

bzr revid: nicolas.vanhoren@openerp.com-20110908095327-23inv0pjwljyktdl
This commit is contained in:
niv-openerp 2011-09-08 11:53:27 +02:00
parent fb8588e3c5
commit 17d1f78682
1 changed files with 3 additions and 1 deletions

View File

@ -1363,9 +1363,11 @@ class Reports(View):
openerpweb.nonliterals.CompoundContext(
req.context or {}, action[ "context"]))
report_data = {"id": context["active_id"], "model": context["active_model"]}
report_data = {}
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_id = report_srv.report(
req.session._db, req.session._uid, req.session._password,
action["report_name"], context["active_ids"],