I want to get all the field values of doctype as a dict while autoname event
we can do ‘self.field_name’ to get the value of the field_name so is there any way where i can get all the field values of a doctype
You can access all fields as attributes from self but if you must need a dict version of doc then self.as_dict() will give you the current state of document in dictionary form.
4 Likes