diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-09-07 15:23:20 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2011-09-07 15:23:20 +0200 |
| commit | b4694f6a91efb1dbd93ed72bbb53cde52a85cc91 (patch) | |
| tree | 781ccad82a3800fece0b5d24a5c6bba2a14d2773 /addons/web/controllers/main.py | |
| parent | 3b1627b7a461fb808ac4225ea1f4a7519980fe3c (diff) | |
[fix] (x-files mode on) problem with some reports that are not reports (x-files mode off)
bzr revid: nicolas.vanhoren@openerp.com-20110907132320-uf2e5a6crjg04r84
Diffstat (limited to 'addons/web/controllers/main.py')
| -rw-r--r-- | addons/web/controllers/main.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 844eaf9dfea..225e55c0591 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -1060,8 +1060,11 @@ class Action(openerpweb.Controller): context = req.session.eval_context(req.context) action_type = Actions.read([action_id], ['type'], context) if action_type: - action = req.session.model(action_type[0]['type']).read([action_id], False, - context) + ctx = {} + if action_type[0]['type'] == 'ir.actions.report.xml': + ctx.update({'bin_size': True}) + ctx.update(context) + action = req.session.model(action_type[0]['type']).read([action_id], False, ctx) if action: value = clean_action(req, action[0]) return {'result': value} |
