Fix appointment slot date parsing
This commit is contained in:
parent
89279003c7
commit
cd8f1812ff
@ -130,6 +130,7 @@ class McsAppointmentType(models.Model):
|
||||
|
||||
def get_available_slots(self, day, limit=40):
|
||||
self.ensure_one()
|
||||
day = fields.Date.to_date(day)
|
||||
now = fields.Datetime.now() + timedelta(hours=self.min_schedule_hours)
|
||||
if day < fields.Date.context_today(self):
|
||||
return []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user