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

I'm really going to appreciate your help, I've searched a lot; I haven't found a solution though, it's something I really need.

아바타
취소
베스트 답변

Hello @Steven Morales Fallas

There is no specific place in website where a button directly calls a python function.

but, you can go achieve it in the following ways:

1. Add button click event in js file 
- Please refer to this link for how to add js in odoo: https://www.odoo.com/documentation/16.0/developer/reference/frontend/javascript_reference.html

2. You will need to write json rpc method in js for which you can call the python function
- Please refer to this link for how to add json rpc in odoo js: https://www.odoo.com/documentation/16.0/developer/reference/frontend/services.html?#rpc-service

I hope this will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

아바타
취소
관련 게시물 답글 화면 활동
0
10월 19
2667
1
6월 24
2857
0
5월 24
743
0
1월 24
520
0
8월 23
877