Problem : i called function of py file form js file for my doctype but it’s not working suddenly on my server. Also it’s working properly on my local server as well as it’s proper work in other doctype on live server.
Also even i put a frappe throw in that python file on validate method but it’s also not working in that doctype.same is working on some doctype.
It was still working proper in some doctype.i haven’t updated bench. just now i created one doctype and i just put throw alert on validate function in py file but it not showing me any alert. same functionality working in other doctype.Also my function is whitelisted but it’s not calling from JS file.
@Harsh_Mehta if you are making changes in a production server, you will need to restart python processes. Dev server automatically restarts on file change, but production server isn’t designed to do that.
I have tried but still my problem was not resolved.
@alec : Not a single validate function but any function of my python file is not called from JS file of that doctype. Also insome doctype it’s working and in some doctype it’s not working.
Sometimes i got this error in console firebug. So anyone tell me due to this below error i am facing this issue ?
Error : Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/
Can you check your environment of ERPNext. Also please check your permission of py & pyc file. If it is in production environment then please run command sudo supervisorctl reload from frappe-bench directory and if it is in development environment then your pyc file should generate based on your request.