diff options
| author | Olivier Dony <odo@openerp.com> | 2011-02-22 19:18:40 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2011-02-22 19:18:40 +0100 |
| commit | 94d2fc7dd6dcb3cf228aaa00fce487dc8dd2822e (patch) | |
| tree | 7132da2ecfb8ce16cd4cce054f6c02558a5dfd72 | |
| parent | c0dcb73428617de654321395eb777a0e7ed9b184 (diff) | |
[FIX] share(web): fix commit 4394, action_id should be an integer
bzr revid: odo@openerp.com-20110222181840-yv2lexnj51fce53n
| -rw-r--r-- | addons/share/web/controllers.py | 4 |
1 files 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', |
