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.
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.