[FIX] share(web): action_id should be passed as an integer

bzr revid: odo@openerp.com-20110222172147-wirqzv14fta1af2q
This commit is contained in:
Olivier Dony 2011-02-22 18:21:47 +01:00
parent 85ab0cc482
commit 15e686e1b0
1 changed files with 2 additions and 2 deletions

View File

@ -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),