I’d like to make customizations on some server side .py file like modifying Controller method of a doctype (Example modify Sales Invoice .py autoname method)
What is the best way to do this to keep these changes when updating to a new version of ERPNext ? Or is there no way of doing this ( changing code and keep it when updating to new version ). Is it possible with patches ? I saw a folder patches in ERPNext but couldn’t quite understand how to create custom patches.