How to refresh the original page after opening a URL in a new tab in OpenERP?

我是研究僧i 提交于 2019-12-24 16:37:02

问题


I have a button that opens a url in a new tab. I want the original page, where the button is, to be reloaded, refreshed, after the opening the url in the new tab. Is it possible to do it?

Here is my XML code:

 <button name="test" type="object" string="Go!" 
 attrs="{'invisible':[('flag_bom_present','=',False)]}"  />

Here is my python code:

def test(self, cr, uid, ids, context=None):
    res = {
            'type': 'ir.actions.act_url', 
            'url': 'http://www.google.com'
          } 
    return res

来源:https://stackoverflow.com/questions/27803788/how-to-refresh-the-original-page-after-opening-a-url-in-a-new-tab-in-openerp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!