Merge pull request #7365 from rohitwaghchaure/terms_and_condition
minor fix
This commit is contained in:
commit
ceea71bcfc
@ -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):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user