mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-12 17:51:20 +00:00
Merge pull request #7365 from rohitwaghchaure/terms_and_condition
minor fix
This commit is contained in:
@@ -9,7 +9,8 @@ from frappe.utils.jinja import validate_template
|
|||||||
|
|
||||||
class TermsandConditions(Document):
|
class TermsandConditions(Document):
|
||||||
def validate(self):
|
def validate(self):
|
||||||
validate_template(self.terms)
|
if self.terms:
|
||||||
|
validate_template(self.terms)
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_terms_and_conditions(template_name, doc):
|
def get_terms_and_conditions(template_name, doc):
|
||||||
|
|||||||
Reference in New Issue
Block a user