← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Public bug reported:

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.

** Affects: openobject-client-web
     Importance: Undecided
         Status: New

** Description changed:

  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'
-                  }
+         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).
  
- 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, templace
- genera page, but nothing appear.
+ i trace the code and all look fine, controller return params, template
+ generate page, but nothing appear.
  
  i hope you understand me.

-- 
[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.







Follow ups

References