コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6761 ビュー

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
17164
3
11月 24
24627
1
4月 23
5966
2
12月 22
6644
1
11月 22
3857