[FIX] pms-pwa: fix calendar filter dates

This commit is contained in:
miguelpadin
2021-11-01 21:05:17 +01:00
committed by Darío Lodeiros
parent 55d52b8b0b
commit 1122c3093b

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"]