我打开一个新的标签页的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