跳至内容
菜单
此问题已终结
1 回复
4529 查看

Hello my friends!

I'm using ODOO 9, Windows 10 and Chrome.

I'm trying to open file on my disk in new tab of browser, and can't do it (((

Browser opens new tab, but it's blank((

Where's my mistake, could you help me?

My code:

def show_my_data(self,cr, uid, ids, arg, context=None):
    

    return {
        'name''Go to website',
        'res_model''ir.actions.act_url',
        'type''ir.actions.act_url',
        'target''new',
        'url''file:///D:/tmp.html'
}


形象
丢弃
最佳答案

Hi Denis,

Make sure from the path of URL is correct

as it is redirecting you to new empty tab means the URL is not correct

形象
丢弃
相关帖文 回复 查看 活动
1
3月 24
3324
3
12月 23
20219
0
3月 24
4907
3
1月 24
8709
1
10月 23
8269