Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
6060 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jul. 19
9598
3
jul. 25
16800
0
dez. 18
2779
1
nov. 24
1071
4
out. 24
3294