[TRUNK][rev 3932]ir.actions.act_url ignore target

Bug #680672 reported by Serge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Low
OpenERP R&D Web Team

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.

Related branches

Serge (sboivin)
description: updated
Revision history for this message
Serge (sboivin) wrote :

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)

Changed in openobject-client-web:
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-client-web:
status: Confirmed → In Progress
Revision history for this message
Vaibhav Darji (vaibhav-openerp) wrote :

Hello Serge,

We have fixed the problem in lp:~openerp-dev/openobject-client-web/ir_action_act_url
It will be merged soon in lp:openobject-client-web.

Revision No: 3955

Thanks

Changed in openobject-client-web:
status: In Progress → Fix Released
milestone: none → 6.0-rc2
Changed in openobject-client-web:
status: Fix Released → In Progress
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Should be fixed as of revision 4061, could you try it out and report back if there is any issue remaining on that front?

Changed in openobject-client-web:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.