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

Added a Button in Odoo POS

In button click action how to change url / call controller like

        http://localhost:8069/pos/web#action=pos.ui

       to http://localhost:8069/pos/event

Anyone help me to resolve in this?


Avatar
Abbandona
Risposta migliore

Type the below code in your function


window.open("www.google.com");


Then a new window will open and the page will be loaded.

If you want this to done in a button click then,


$('#stocks').click(function(){

    window.open("www.google.com");

}

in the above code stocks is the name of the button which is created in the xml view. all the other must the the same

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 19
9748
3
lug 25
17036
0
dic 18
2891
1
nov 24
1444
4
ott 24
3715