Removed unused code

This commit is contained in:
Valmik Jangla 2016-03-09 15:00:17 +05:30 committed by Anand Doshi
parent c666030f34
commit 3427c939bd

View File

@ -30,10 +30,6 @@ class HolidayList(Document):
if not self.weekly_off:
throw(_("Please select weekly off day"))
def validate_weekly_days(self):
for day in self.get("holidays"):
if (self.weekly_off or "").upper() == (day.description or "").upper():
frappe.throw("Records already exist for mentioned weekly off")
def validate_days(self):
for day in self.get("holidays"):