diff --git a/crm/api/doc.py b/crm/api/doc.py index f8e20b85..0c535e99 100644 --- a/crm/api/doc.py +++ b/crm/api/doc.py @@ -534,8 +534,10 @@ def get_assigned_users(doctype, name, default_assigned_to=None): @frappe.whitelist() -def get_fields(doctype: str): +def get_fields(doctype: str, allow_all_fieldtypes: bool = False): not_allowed_fieldtypes = list(frappe.model.no_value_fields) + ["Read Only"] + if allow_all_fieldtypes: + not_allowed_fieldtypes = [] fields = frappe.get_meta(doctype).fields _fields = [] @@ -553,6 +555,7 @@ def get_fields(doctype: str): "type": field.fieldtype, "value": field.fieldname, "options": field.options, + "mandatory": field.reqd, }) return _fields \ No newline at end of file diff --git a/frontend/src/components/Settings/TwilioSettings.vue b/frontend/src/components/Settings/TwilioSettings.vue index ba955dc3..2842d1bf 100644 --- a/frontend/src/components/Settings/TwilioSettings.vue +++ b/frontend/src/components/Settings/TwilioSettings.vue @@ -1,3 +1,65 @@ - Twilio Settings - \ No newline at end of file +