تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
6499 أدوات العرض

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
نوفمبر 23
16685
3
نوفمبر 24
23779
1
أبريل 23
5638
2
ديسمبر 22
6320
1
نوفمبر 22
3447