From 4342ea125216e9fe563a95715db3a629e5c06e2d Mon Sep 17 00:00:00 2001 From: "vda (Open ERP)" Date: Sat, 20 Nov 2010 12:30:51 +0530 Subject: [PATCH] [FIX] Fixed share action according to framework,share_root_url. bzr revid: vda@tinyerp.com-20101120070051-vnlh1dp99shaxpoa --- addons/share/web/controllers.py | 4 +--- addons/share/web/editors.py | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/addons/share/web/controllers.py b/addons/share/web/controllers.py index 18ed74a2d5e..c37af991b25 100644 --- a/addons/share/web/controllers.py +++ b/addons/share/web/controllers.py @@ -15,7 +15,6 @@ class Piratepad(openerp.controllers.SecuredController): domain = ast.literal_eval(domain) search_domain = ast.literal_eval(search_domain) domain.extend(search_domain) - context = ast.literal_eval(context) view_name = context.get('_terp_view_name') or name if view_name: @@ -23,11 +22,10 @@ class Piratepad(openerp.controllers.SecuredController): if action_id: action_id = action_id[0] share_model = 'share.wizard' - share_root_url = cherrypy.config.get('server.socket_host') + ':' + str(cherrypy.config.get('server.socket_port')) + share_root_url = cherrypy.request.base share_wiz_id = rpc.RPCProxy('ir.ui.menu').search([('name','=', 'Share Wizard')]) context.update({'active_ids': share_wiz_id, 'active_id': share_wiz_id[0], '_terp_view_name': 'Share Wizard', 'share_root_url': share_root_url}) sharing_view_id = rpc.RPCProxy(share_model).create({'domain': str(domain), 'action_id':action_id}, context) - return actions.execute(rpc.session.execute('object', 'execute', share_model, 'go_step_1', [sharing_view_id], context), ids=[sharing_view_id], context=context) diff --git a/addons/share/web/editors.py b/addons/share/web/editors.py index fadbe50ff72..9059e841034 100644 --- a/addons/share/web/editors.py +++ b/addons/share/web/editors.py @@ -20,12 +20,13 @@ class SidebarTemplateEditor(openobject.templating.TemplateEditor):