Skip to Content
Menu
This question has been flagged
1 Atsakyti
6085 Rodiniai

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?


Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
liep. 19
9618
3
liep. 25
16826
0
gruod. 18
2788
1
lapkr. 24
1095
4
spal. 24
3325