diff --git a/crm/fcrm/doctype/crm_dropdown_item/__init__.py b/crm/fcrm/doctype/crm_dropdown_item/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/crm/fcrm/doctype/crm_dropdown_item/crm_dropdown_item.json b/crm/fcrm/doctype/crm_dropdown_item/crm_dropdown_item.json new file mode 100644 index 00000000..490acc8a --- /dev/null +++ b/crm/fcrm/doctype/crm_dropdown_item/crm_dropdown_item.json @@ -0,0 +1,94 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2024-12-27 17:42:33.089685", + "doctype": "DocType", + "engine": "InnoDB", + "field_order": [ + "name1", + "label", + "type", + "route", + "open_in_new_window", + "hidden", + "is_standard", + "column_break_mvbq", + "icon" + ], + "fields": [ + { + "fieldname": "label", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Label", + "mandatory_depends_on": "eval:doc.type == 'Route'" + }, + { + "fieldname": "type", + "fieldtype": "Select", + "in_list_view": 1, + "label": "Type", + "options": "Route\nSeparator", + "read_only_depends_on": "eval:doc.is_standard" + }, + { + "depends_on": "eval:doc.type == 'Route'", + "fieldname": "route", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Route", + "mandatory_depends_on": "eval:doc.type == 'Route'" + }, + { + "default": "0", + "fieldname": "hidden", + "fieldtype": "Check", + "in_list_view": 1, + "label": "Hidden" + }, + { + "default": "0", + "fieldname": "is_standard", + "fieldtype": "Check", + "label": "Is Standard", + "read_only": 1 + }, + { + "fieldname": "column_break_mvbq", + "fieldtype": "Column Break" + }, + { + "description": "Add svg code or use feather icons e.g 'settings'", + "fieldname": "icon", + "fieldtype": "Code", + "label": "Icon" + }, + { + "default": "1", + "depends_on": "eval:doc.type == 'Route'", + "fieldname": "open_in_new_window", + "fieldtype": "Check", + "label": "Open in new window" + }, + { + "depends_on": "eval:doc.is_standard", + "fieldname": "name1", + "fieldtype": "Data", + "label": "Name", + "read_only": 1, + "unique": 1 + } + ], + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2024-12-27 19:35:53.012508", + "modified_by": "Administrator", + "module": "FCRM", + "name": "CRM Dropdown Item", + "owner": "Administrator", + "permissions": [], + "sort_field": "creation", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/crm/fcrm/doctype/crm_dropdown_item/crm_dropdown_item.py b/crm/fcrm/doctype/crm_dropdown_item/crm_dropdown_item.py new file mode 100644 index 00000000..1ef99ae2 --- /dev/null +++ b/crm/fcrm/doctype/crm_dropdown_item/crm_dropdown_item.py @@ -0,0 +1,9 @@ +# Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class CRMDropdownItem(Document): + pass diff --git a/crm/fcrm/doctype/fcrm_settings/fcrm_settings.json b/crm/fcrm/doctype/fcrm_settings/fcrm_settings.json index c76784ae..18bcb985 100644 --- a/crm/fcrm/doctype/fcrm_settings/fcrm_settings.json +++ b/crm/fcrm/doctype/fcrm_settings/fcrm_settings.json @@ -5,19 +5,26 @@ "doctype": "DocType", "engine": "InnoDB", "field_order": [ - "restore_defaults" + "restore_defaults", + "dropdown_items" ], "fields": [ { "fieldname": "restore_defaults", "fieldtype": "Button", "label": "Restore Defaults" + }, + { + "fieldname": "dropdown_items", + "fieldtype": "Table", + "label": "Dropdown Items", + "options": "CRM Dropdown Item" } ], "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2024-09-29 13:49:07.835379", + "modified": "2024-12-27 17:47:29.196692", "modified_by": "Administrator", "module": "FCRM", "name": "FCRM Settings",