Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6236 มุมมอง

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
9751
Popup window in pos แก้ไขแล้ว
3
ก.ค. 25
17038
0
ธ.ค. 18
2891
1
พ.ย. 24
1446
4
ต.ค. 24
3721