From 7de9c3ebd165d64b6a3aa72eed8447363f995638 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 21 Oct 2011 16:32:32 +0200 Subject: [PATCH] [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 --- addons/web/controllers/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index cdcd155966e..8120141b4f6 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -1373,10 +1373,9 @@ class Reports(View): if 'report_type' in action: report_data['report_type'] = action['report_type'] 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_ids = action['datas'].pop('ids') + report_data.update(action['datas']) report_id = report_srv.report( req.session._db, req.session._uid, req.session._password,