Im new to erpnext and my first assignment is to edit data in the database.
What im trying to do is make a button and a call method, which i already have. Making the method im unsure of.
Essentially what this method should do is do a sql and find out if the docs status is new then update another doctype values. The doctypes im working with is issue and a custom doctype. When issue doctype is new then custom doctype fields values should change as well.
How do you start with this? I checked the code of other python files but am still confused about the syntax.
Please is there anyone that could possibly help?