Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
6254 Tampilan

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?


Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jul 19
9783
3
Jul 25
17072
0
Des 18
2910
1
Nov 24
1466
4
Okt 24
3762