Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
6922 Näkymät

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. 

Avatar
Hylkää
Paras vastaus

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.

Avatar
Hylkää
Tekijä

_onSave or saveRecord is a python function?

Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
marrask. 23
17378
3
marrask. 24
25029
1
huhtik. 23
6113
2
jouluk. 22
6855
1
marrask. 22
4043