how to call method of save of odoo in jquery code example
Example: odoo submit form using js and display data
success: function(data){ console.log(typeof data); console.log('Success! ' + data); var doc = new DOMParser().parseFromString(data, "text/html"); var tmp_element = doc.getElementById('form'); console.log('Element ' + tmp_element); if (tmp_element == null){ document.getElementById('form_error').innerHTML = "The page needs to be reloaded!"; }else{ form.submit(); } },