콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6238 화면

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
9752
Popup window in pos 해결 완료
3
7월 25
17042
0
12월 18
2892
1
11월 24
1449
4
10월 24
3725