Merge pull request #7365 from rohitwaghchaure/terms_and_condition
minor fix
This commit is contained in:
commit
ceea71bcfc
@ -9,6 +9,7 @@ from frappe.utils.jinja import validate_template
|
|||||||
|
|
||||||
class TermsandConditions(Document):
|
class TermsandConditions(Document):
|
||||||
def validate(self):
|
def validate(self):
|
||||||
|
if self.terms:
|
||||||
validate_template(self.terms)
|
validate_template(self.terms)
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user