Version 6.x.x Source

Class Meta

Inherits from frappe.model.document.Document

__init__ (self, doctype)

No docs


add_custom_fields (self)

No docs


apply_property_setters (self)

No docs


get_dynamic_link_fields (self)

No docs


get_field (self, fieldname)

No docs


get_fields_to_check_permissions (self, user_permission_doctypes)

No docs


get_high_permlevel_fields (self)

Build list of fields with high perm level and all the higher perm levels defined.


get_label (self, fieldname)

No docs


get_link_fields (self)

No docs


get_list_fields (self)

No docs


get_options (self, fieldname)

No docs


get_search_fields (self)

No docs


get_select_fields (self)

No docs


get_table_field_doctype (self, fieldname)

No docs


get_table_fields (self)

No docs


get_title_field (self)

No docs


get_valid_columns (self)

No docs


load_from_db (self)

No docs


process (self)

No docs


sort_fields (self)

sort on basis of previous_field



frappe.model.meta.clear_cache (doctype=None)

No docs


frappe.model.meta.get_default_df (fieldname)

No docs


frappe.model.meta.get_field_currency (df, doc=None)

get currency based on DocField options and fieldvalue in doc


frappe.model.meta.get_field_precision (df, doc=None, currency=None)

get precision based on DocField options and fieldvalue in doc


frappe.model.meta.get_meta (doctype, cached=True)

No docs


frappe.model.meta.get_parent_dt (dt)

No docs


frappe.model.meta.get_table_columns (doctype)

No docs


frappe.model.meta.is_single (doctype)

No docs


frappe.model.meta.load_doctype_from_file (doctype)

No docs


frappe.model.meta.set_fieldname (field_id, fieldname)

No docs


frappe.model.meta.trim_tables ()

Use this to remove columns that don't exist in meta