コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6098 ビュー

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
9629
3
7月 25
16830
0
12月 18
2797
1
11月 24
1106
4
10月 24
3332