remove duplicate day validation

This commit is contained in:
Pranav Nachanekar 2019-10-03 13:32:57 +05:30
parent 1dccc039b7
commit 8640a01f85

View File

@ -27,9 +27,3 @@ class AppointmentBookingSettings(Document):
if timedelta.total_seconds() % (self.appointment_duration * 60):
frappe.throw('The difference between from time and To Time must be a multiple of Appointment ')
set_of_days = set(list_of_days)
if len(list_of_days) > len(set_of_days):
frappe.throw(_('Days of week must be unique'))