Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4510 Zobrazení

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'
}


Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 24
3269
3
pro 23
20191
0
bře 24
4866
3
led 24
8672
1
říj 23
8217