From 15e686e1b071ed55792d97a8580581955a333371 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Tue, 22 Feb 2011 18:21:47 +0100 Subject: [PATCH] [FIX] share(web): action_id should be passed as an integer bzr revid: odo@openerp.com-20110222172147-wirqzv14fta1af2q --- 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 bac7a607cf0..4b723f225da 100644 --- a/addons/share/web/controllers.py +++ b/addons/share/web/controllers.py @@ -17,7 +17,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( @@ -44,7 +44,7 @@ class ShareWizardController(openerp.controllers.SecuredController): Share = rpc.RPCProxy('share.wizard') sharing_view_id = Share.create({ 'domain': str(domain), - 'action_id':action_id + 'action_id': action_id and int(action_id) }, context) return openerp.controllers.actions.execute( Share.go_step_1([sharing_view_id], context),