问题
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