Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
6689 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

_onSave or saveRecord is a python function?

Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
3
nov. 23
17071
3
nov. 24
24478
1
apr. 23
5911
2
dec. 22
6584
1
nov. 22
3809