fix: added crm contacts table doctype in lead/deal
This commit is contained in:
parent
1944efbf80
commit
12f62efd1f
0
crm/crm/doctype/crm_contacts/__init__.py
Normal file
0
crm/crm/doctype/crm_contacts/__init__.py
Normal file
85
crm/crm/doctype/crm_contacts/crm_contacts.json
Normal file
85
crm/crm/doctype/crm_contacts/crm_contacts.json
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"actions": [],
|
||||
"allow_rename": 1,
|
||||
"creation": "2023-08-25 19:08:36.356133",
|
||||
"doctype": "DocType",
|
||||
"editable_grid": 1,
|
||||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"contact",
|
||||
"full_name",
|
||||
"email",
|
||||
"column_break_uvny",
|
||||
"gender",
|
||||
"mobile_no",
|
||||
"phone"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "contact",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Contact",
|
||||
"options": "Contact"
|
||||
},
|
||||
{
|
||||
"fetch_from": "contact.full_name",
|
||||
"fieldname": "full_name",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Full Name",
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"fetch_from": "contact.email_id",
|
||||
"fieldname": "email",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Email",
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "column_break_uvny",
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"fetch_from": "contact.mobile_no",
|
||||
"fieldname": "mobile_no",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Mobile No",
|
||||
"options": "Phone",
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"fetch_from": "contact.phone",
|
||||
"fieldname": "phone",
|
||||
"fieldtype": "Data",
|
||||
"in_list_view": 1,
|
||||
"label": "Phone",
|
||||
"options": "Phone",
|
||||
"read_only": 1
|
||||
},
|
||||
{
|
||||
"fetch_from": "contact.gender",
|
||||
"fieldname": "gender",
|
||||
"fieldtype": "Link",
|
||||
"in_list_view": 1,
|
||||
"label": "Gender",
|
||||
"options": "Gender",
|
||||
"read_only": 1
|
||||
}
|
||||
],
|
||||
"index_web_pages_for_search": 1,
|
||||
"istable": 1,
|
||||
"links": [],
|
||||
"modified": "2023-08-25 19:19:27.813526",
|
||||
"modified_by": "Administrator",
|
||||
"module": "CRM",
|
||||
"name": "CRM Contacts",
|
||||
"owner": "Administrator",
|
||||
"permissions": [],
|
||||
"sort_field": "modified",
|
||||
"sort_order": "DESC",
|
||||
"states": []
|
||||
}
|
||||
9
crm/crm/doctype/crm_contacts/crm_contacts.py
Normal file
9
crm/crm/doctype/crm_contacts/crm_contacts.py
Normal file
@ -0,0 +1,9 @@
|
||||
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
|
||||
# For license information, please see license.txt
|
||||
|
||||
# import frappe
|
||||
from frappe.model.document import Document
|
||||
|
||||
|
||||
class CRMContacts(Document):
|
||||
pass
|
||||
@ -13,30 +13,38 @@
|
||||
"first_name",
|
||||
"middle_name",
|
||||
"last_name",
|
||||
"is_deal",
|
||||
"column_break_izjs",
|
||||
"lead_name",
|
||||
"gender",
|
||||
"image",
|
||||
"is_deal",
|
||||
"column_break_lcuv",
|
||||
"lead_owner",
|
||||
"status",
|
||||
"deal_status",
|
||||
"image",
|
||||
"column_break_lcuv",
|
||||
"source",
|
||||
"section_break_ymew",
|
||||
"email",
|
||||
"website",
|
||||
"column_break_sijm",
|
||||
"mobile_no",
|
||||
"column_break_sjtw",
|
||||
"phone",
|
||||
"deal_status",
|
||||
"close_date",
|
||||
"probability",
|
||||
"next_step",
|
||||
"organization_tab",
|
||||
"section_break_uixv",
|
||||
"organization_name",
|
||||
"no_of_employees",
|
||||
"organization_logo",
|
||||
"column_break_dbsv",
|
||||
"website",
|
||||
"job_title",
|
||||
"annual_revenue",
|
||||
"industry"
|
||||
"industry",
|
||||
"contact_tab",
|
||||
"section_break_ymew",
|
||||
"email",
|
||||
"column_break_sijm",
|
||||
"mobile_no",
|
||||
"column_break_sjtw",
|
||||
"phone",
|
||||
"section_break_jyxr",
|
||||
"contacts"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
@ -203,12 +211,52 @@
|
||||
"in_standard_filter": 1,
|
||||
"label": "Is Deal",
|
||||
"search_index": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "job_title",
|
||||
"fieldtype": "Data",
|
||||
"label": "Job Title"
|
||||
},
|
||||
{
|
||||
"fieldname": "organization_tab",
|
||||
"fieldtype": "Tab Break",
|
||||
"label": "Organization"
|
||||
},
|
||||
{
|
||||
"fieldname": "contact_tab",
|
||||
"fieldtype": "Tab Break",
|
||||
"label": "Contact"
|
||||
},
|
||||
{
|
||||
"fieldname": "close_date",
|
||||
"fieldtype": "Date",
|
||||
"label": "Close Date"
|
||||
},
|
||||
{
|
||||
"fieldname": "probability",
|
||||
"fieldtype": "Data",
|
||||
"label": "Probability"
|
||||
},
|
||||
{
|
||||
"fieldname": "next_step",
|
||||
"fieldtype": "Data",
|
||||
"label": "Next Step"
|
||||
},
|
||||
{
|
||||
"fieldname": "contacts",
|
||||
"fieldtype": "Table",
|
||||
"label": "Contacts",
|
||||
"options": "CRM Contacts"
|
||||
},
|
||||
{
|
||||
"fieldname": "section_break_jyxr",
|
||||
"fieldtype": "Section Break"
|
||||
}
|
||||
],
|
||||
"image_field": "image",
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2023-08-24 15:32:21.577653",
|
||||
"modified": "2023-08-25 19:21:22.778067",
|
||||
"modified_by": "Administrator",
|
||||
"module": "CRM",
|
||||
"name": "CRM Lead",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user