1
0
forked from test/crm
jcrm/crm/overrides/email_template.py

52 lines
913 B
Python

# import frappe
from frappe import _
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}