fix: travis (#18116)

This commit is contained in:
Himanshu 2019-07-01 10:24:02 +05:30 committed by Nabin Hait
parent 4c2eb0f13b
commit 2d0fd9f519

View File

@ -18,7 +18,7 @@ class ServiceLevelAgreement(Document):
if self.start_date >= self.end_date:
frappe.throw(_("Start Date of Agreement can't be greater than or equal to End Date."))
if self.end_date < frappe.utils.nowdate():
if self.end_date < frappe.utils.getdate():
frappe.throw(_("End Date of Agreement can't be less than today."))
if self.entity_type and self.entity: