Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4514 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mar 24
3294
3
dic 23
20206
0
mar 24
4875
3
gen 24
8689
1
ott 23
8243