跳至内容
菜单
此问题已终结
1 回复
6066 查看

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

形象
丢弃
相关帖文 回复 查看 活动
1
7月 19
9600
3
7月 25
16804
0
12月 18
2780
1
11月 24
1077
4
10月 24
3302