I have added new api in item.py file . Should I avoid adding this code in the item.py file as considering the version update of erpnext?. Give me some guidelines while adding new custom api into the frappe/Erpnext
Hi,
You should not touch the standard files for frappe/ERPNext.
You can always override the standard function through custom app. Please refer this documentation: Create an App
Regards,
Divyesh Mangroliya
I have created custom app, inside that app ,inside that app’s module i have created a new file as xxx.py file and added new api of item.py there and calling that API via hooks.py by adding in doc events hooks. Am I following right way to do that.