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

Hello,

After opening the form view there is save button is available. This button is available because of the js file. Which js file is available for this save button? I am searching complete web module js file but didn't find code for the save button. Can anyone, please give me on which js file save button coding is done. 

아바타
취소
베스트 답변

Hi, 
in V12, the path is : 

/server/addons/web/static/src/js/views/form/form_controller.js then search for renderButtons. 

The save button has class  o_form_button_save, the function called when click on Save is done is _onSave that calls saveRecord().

Hope this helps.

아바타
취소
작성자

_onSave or saveRecord is a python function?

작성자

Thanks, @Ibrahim. Your answer is helpful. I find _onSave is a function available in BasicController. I am giving a vote for you.

Thanks and Good luck

관련 게시물 답글 화면 활동
3
11월 23
17307
3
11월 24
24908
1
4월 23
6062
2
12월 22
6789
1
11월 22
3974