← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 680672] Re: [TRUNK][rev 3932]ir.actions.act_url ignore target

 

i will explain what controller do

in partner view, i select some partner, click on the wizard, wizard pass
ids selected to controller, controller collect the information about
each parner (name,street,phone,latitude,longitude), controler create
param to pass to template(mako) , generate a html code to open googles
maps and all partner selected marker on it.

if i write in address bar
http://localhost:8080/medical/map/get?ids=[1,2,3,4,5]  that will
generate a google map with all partner on it, this work fine

if i do it with wizard, blank page

if i do it after my modification to open in new windows, map open in new
tab but the search view of partner disappear(all menu in other thing no
disappear)

-- 
[TRUNK][rev 3932]ir.actions.act_url ignore target
https://bugs.launchpad.net/bugs/680672
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Web Client: New

Bug description:
Action to open a url ignore the target
url = "/medical/map/get?ids=%s" % data['ids']
        value = {
                 'type': 'ir.actions.act_url',
                 'url':url,
                 'target': 'new'
                 }

for the moment i modify the function execute_url in action.py

if url.startswith('http://') or url.startswith('http://'):

change by

if url.startswith('http://') or url.startswith('http://') or data['target']=='new' :

that work fine, link now open in new windows, but in the main windows the frame of the search view disappear.

If i try with no change: when i click to open the link, webpage turn blank with no source (view source, source empty).

i trace the code and all look fine, controller return params, template generate page, but nothing appear.

i hope you understand me.







References