Files
upstream-frappe-crm/crm/overrides/contact.py
upstream-mirror db69de1c11
Some checks failed
Frontend / Unit Tests & Coverage (push) Has been skipped
Regenerate POT file (translatable strings) / Regenerate POT file (develop) (push) Failing after 1m13s
Regenerate POT file (translatable strings) / Regenerate POT file (main-hotfix) (push) Failing after 6s
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
snapshot of https://github.com/frappe/crm.git (develop, 2026-09-18; blobs > 131072B omitted)
2026-09-18 01:36:01 +05:00

50 lines
843 B
Python

# 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}