跳至内容
菜单
此问题已终结
1 回复
6695 查看

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
17080
3
11月 24
24496
1
4月 23
5917
2
12月 22
6586
1
11月 22
3812