Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6071 Переглядів

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?


Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лип. 19
9604
Popup window in pos Вирішено
3
лип. 25
16811
0
груд. 18
2784
1
лист. 24
1082
4
жовт. 24
3310