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
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:
49
crm/overrides/contact.py
Normal file
49
crm/overrides/contact.py
Normal 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}
|
||||
Reference in New Issue
Block a user