Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6746 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
How to track One2many field in Odoo12? แก้ไขแล้ว
3
พ.ย. 23
17134
Error: Couldn't load module web แก้ไขแล้ว
3
พ.ย. 24
24589
How I get the current ID of a record ? แก้ไขแล้ว
1
เม.ย. 23
5948
2
ธ.ค. 22
6620
1
พ.ย. 22
3834