[FIX] report data should hold everything returned in the datas key from the report action, except for the ids. Not just form
lp bug: https://launchpad.net/bugs/879298 fixed bzr revid: xmo@openerp.com-20111021143232-7nde37eqwh1h9n3r
This commit is contained in:
parent
956ed719ae
commit
7de9c3ebd1
|
@ -1373,10 +1373,9 @@ class Reports(View):
|
||||||
if 'report_type' in action:
|
if 'report_type' in action:
|
||||||
report_data['report_type'] = action['report_type']
|
report_data['report_type'] = action['report_type']
|
||||||
if 'datas' in action:
|
if 'datas' in action:
|
||||||
if 'form' in action['datas']:
|
|
||||||
report_data['form'] = action['datas']['form']
|
|
||||||
if 'ids' in action['datas']:
|
if 'ids' in action['datas']:
|
||||||
report_ids = action['datas']['ids']
|
report_ids = action['datas'].pop('ids')
|
||||||
|
report_data.update(action['datas'])
|
||||||
|
|
||||||
report_id = report_srv.report(
|
report_id = report_srv.report(
|
||||||
req.session._db, req.session._uid, req.session._password,
|
req.session._db, req.session._uid, req.session._password,
|
||||||
|
|
Loading…
Reference in New Issue