如何在OpenERP的一个新标签打开URL之后刷新原来的页面?(How to refresh the

2019-10-21 13:37发布

我打开一个新的标签页的URL的按钮。 我想原来的页面,其中的按钮,重新加载,刷新后的新标签开幕的URL。 是否有可能做到这一点?

这里是我的XML代码:

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

这里是我的Python代码:

def test(self, cr, uid, ids, context=None):
    res = {
            'type': 'ir.actions.act_url', 
            'url': 'http://www.google.com'
          } 
    return res
文章来源: How to refresh the original page after opening a URL in a new tab in OpenERP?