From 94d2fc7dd6dcb3cf228aaa00fce487dc8dd2822e Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Tue, 22 Feb 2011 19:18:40 +0100 Subject: [PATCH] [FIX] share(web): fix commit 4394, action_id should be an integer bzr revid: odo@openerp.com-20110222181840-yv2lexnj51fce53n --- addons/share/web/controllers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/share/web/controllers.py b/addons/share/web/controllers.py index d31f61d024d..aa689019259 100644 --- a/addons/share/web/controllers.py +++ b/addons/share/web/controllers.py @@ -18,7 +18,7 @@ class ShareWizardController(openerp.controllers.SecuredController): if not action_id: # This should not be needed anymore, but just in case users are - # running the module with an order version of the web client... + # running the module with an older version of the web client... # to remove soon-ish action_id = rpc.RPCProxy('ir.actions.act_window').search( @@ -46,7 +46,7 @@ class ShareWizardController(openerp.controllers.SecuredController): share_root_url=share_root_url) sharing_view_id = rpc.RPCProxy(share_model).create({ 'domain': str(domain), - 'action_id':action_id + 'action_id': action_id and int(action_id) }, context) return actions.execute( rpc.session.execute('object', 'execute', share_model, 'go_step_1',