From 5f95ba57a8b66e3d4f493c05e4342cf205fdded4 Mon Sep 17 00:00:00 2001 From: Kenneth Sequeira Date: Mon, 7 Dec 2020 10:45:13 +0530 Subject: [PATCH] fix: py code clean up and doc help --- erpnext/crm/doctype/contract_template/contract_template.json | 4 ++-- erpnext/crm/doctype/contract_template/contract_template.py | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/erpnext/crm/doctype/contract_template/contract_template.json b/erpnext/crm/doctype/contract_template/contract_template.json index 9fc24798cd..7cc5ec13cf 100644 --- a/erpnext/crm/doctype/contract_template/contract_template.json +++ b/erpnext/crm/doctype/contract_template/contract_template.json @@ -52,11 +52,11 @@ "fieldname": "contract_template_help", "fieldtype": "HTML", "label": "Contract Template Help", - "options": "

Contract Template Example

\n\n
Contract for Customer {{ party_name }}\n\n-Valid From : {{ start_date }} \n-Valid To : {{ end_date }}\n
\n\n

How to get fieldnames

\n\n

The fieldnames you can use in your email template are the fields in the document from which you are sending the email. You can find out the fields of any documents via Setup > Customize Form View and selecting the document type (e.g. Contract)

\n\n

Templating

\n\n

Templates are compiled using the Jinja Templating Language. To learn more about Jinja, read this documentation.

" + "options": "

Contract Template Example

\n\n
Contract for Customer {{ party_name }}\n\n-Valid From : {{ start_date }} \n-Valid To : {{ end_date }}\n
\n\n

How to get fieldnames

\n\n

The field names you can use in your Contract Template are the fields in the Contract for which you are creating the template. You can find out the fields of any documents via Setup > Customize Form View and selecting the document type (e.g. Contract)

\n\n

Templating

\n\n

Templates are compiled using the Jinja Templating Language. To learn more about Jinja, read this documentation.

" } ], "links": [], - "modified": "2020-12-02 21:36:53.097074", + "modified": "2020-12-07 10:44:22.587047", "modified_by": "Administrator", "module": "CRM", "name": "Contract Template", diff --git a/erpnext/crm/doctype/contract_template/contract_template.py b/erpnext/crm/doctype/contract_template/contract_template.py index 48ab8aad47..69fd86f7fb 100644 --- a/erpnext/crm/doctype/contract_template/contract_template.py +++ b/erpnext/crm/doctype/contract_template/contract_template.py @@ -10,8 +10,6 @@ from six import string_types import json class ContractTemplate(Document): - pass - def validate(self): if self.contract_terms: validate_template(self.contract_terms)