Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6228 Widoki

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?


Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lip 19
9747
3
lip 25
17034
0
gru 18
2890
1
lis 24
1442
4
paź 24
3706