[FIX] pms-api-rest: fix calendar filter gte->gt

This commit is contained in:
miguelpadin
2021-10-06 09:03:37 +02:00
committed by Darío Lodeiros
parent cc0c0b22c9
commit 55d52b8b0b

View File

@@ -26,7 +26,7 @@ class PmsCalendarService(Component):
)
def get_calendar(self, calendar_search_param):
domain = list()
domain.append(("date", ">=", datetime.fromisoformat(calendar_search_param.date_from)))
domain.append(("date", ">", datetime.fromisoformat(calendar_search_param.date_from)))
domain.append(("date", "<=", datetime.fromisoformat(calendar_search_param.date_to)))
result_lines = []
PmsCalendarShortInfo = self.env.datamodels["pms.calendar.short.info"]