snapshot of https://github.com/frappe/crm.git (develop, 2026-09-18; blobs > 131072B omitted)
Some checks failed
Frontend / Unit Tests & Coverage (push) Has been skipped
Server / Tests (frappe ${{ matrix.frappe-branch }}) (push) Has been skipped
Server / Resolve frappe matrix (push) Failing after 1s
Frontend / Lint (push) Failing after 1s
Frontend / Production Build (push) Failing after 1s
Server / Coverage Wrap Up (push) Has been skipped
Frontend / Coverage Wrap Up (push) Has been skipped
Regenerate POT file (translatable strings) / Regenerate POT file (develop) (push) Failing after 1s
Regenerate POT file (translatable strings) / Regenerate POT file (main-hotfix) (push) Failing after 1s

This commit is contained in:
upstream-mirror
2026-09-18 01:36:01 +05:00
commit db69de1c11
905 changed files with 102713 additions and 0 deletions

49
crm/overrides/contact.py Normal file
View File

@@ -0,0 +1,49 @@
# import frappe
from frappe.contacts.doctype.contact.contact import Contact
class CustomContact(Contact):
@staticmethod
def default_list_data():
columns = [
{
"label": "Name",
"type": "Data",
"key": "full_name",
"width": "17rem",
},
{
"label": "Email",
"type": "Data",
"key": "email_id",
"width": "12rem",
},
{
"label": "Phone",
"type": "Data",
"key": "mobile_no",
"width": "12rem",
},
{
"label": "Organization",
"type": "Data",
"key": "company_name",
"width": "12rem",
},
{
"label": "Last Modified",
"type": "Datetime",
"key": "modified",
"width": "8rem",
},
]
rows = [
"name",
"full_name",
"company_name",
"email_id",
"mobile_no",
"modified",
"image",
]
return {"columns": columns, "rows": rows}

View File

@@ -0,0 +1,50 @@
# import frappe
from frappe.email.doctype.email_template.email_template import EmailTemplate
class CustomEmailTemplate(EmailTemplate):
@staticmethod
def default_list_data():
columns = [
{
"label": "Name",
"type": "Data",
"key": "name",
"width": "17rem",
},
{
"label": "Subject",
"type": "Data",
"key": "subject",
"width": "12rem",
},
{
"label": "Enabled",
"type": "Check",
"key": "enabled",
"width": "6rem",
},
{
"label": "Doctype",
"type": "Link",
"key": "reference_doctype",
"width": "12rem",
},
{
"label": "Last Modified",
"type": "Datetime",
"key": "modified",
"width": "8rem",
},
]
rows = [
"name",
"enabled",
"use_html",
"reference_doctype",
"subject",
"response",
"response_html",
"modified",
]
return {"columns": columns, "rows": rows}