diff --git a/erpnext/hr/doctype/vehicle/vehicle.py b/erpnext/hr/doctype/vehicle/vehicle.py index 50c37274731..a75cfa61257 100644 --- a/erpnext/hr/doctype/vehicle/vehicle.py +++ b/erpnext/hr/doctype/vehicle/vehicle.py @@ -5,12 +5,12 @@ from __future__ import unicode_literals import frappe from frappe import _ -from frappe.utils import getdate, nowdate +from frappe.utils import getdate from frappe.model.document import Document class Vehicle(Document): def validate(self): if getdate(self.start_date) > getdate(self.end_date): frappe.throw(_("Insurance Start date should be less than Insurance End date")) - if getdate(self.carbon_check_date) > getdate(nowdate()): + if getdate(self.carbon_check_date) > getdate(): frappe.throw(_("Last carbon check date cannot be a future date")) \ No newline at end of file