← Back to team overview

openerp-dev-web team mailing list archive

lp:~daniel-watkins-credativ/openobject-client-web/fix-popup-namespace into lp:openobject-client-web

 

Daniel Watkins (credativ) has proposed merging lp:~daniel-watkins-credativ/openobject-client-web/fix-popup-namespace into lp:openobject-client-web.

Requested reviews:
  OpenERP SA's Web Client R&D (openerp-dev-web)

For more details, see:
https://code.launchpad.net/~daniel-watkins-credativ/openobject-client-web/fix-popup-namespace/+merge/48000

The vast majority of the web interface works under the /openerp/ prefix.  Pop-up windows do not.  This branch fixes that.
-- 
https://code.launchpad.net/~daniel-watkins-credativ/openobject-client-web/fix-popup-namespace/+merge/48000
Your team OpenERP SA's Web Client R&D is requested to review the proposed merge of lp:~daniel-watkins-credativ/openobject-client-web/fix-popup-namespace into lp:openobject-client-web.
=== modified file 'addons/openerp/controllers/actions.py'
--- addons/openerp/controllers/actions.py	2011-01-31 10:14:45 +0000
+++ addons/openerp/controllers/actions.py	2011-01-31 14:52:32 +0000
@@ -352,7 +352,7 @@
            urllib.urlencode({'payload': compressed_payload}))
 
     if open_new_tab:
-        url = '/?' + urllib.urlencode({'next': url})
+        url = '/openerp/?' + urllib.urlencode({'next': url})
 
     cherrypy.response.headers['X-Target'] = action['target']
     cherrypy.response.headers['Location'] = url


Follow ups