I am working on a Restaurant model. Suppose there are many orders at a given time
order-001
order-002
and now I am saving order-003.
At this point of time from python file how do I find the parent name from sql table?
How do I use “get_parentfield_of_doctype (self, doctype)” to get parentfield name from db. Please provide me an example.