From 1122c3093b8aa9bd89237633b900868aeaf4c2f6 Mon Sep 17 00:00:00 2001 From: miguelpadin Date: Mon, 1 Nov 2021 21:05:17 +0100 Subject: [PATCH] [FIX] pms-pwa: fix calendar filter dates --- pms_api_rest/services/calendar_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pms_api_rest/services/calendar_service.py b/pms_api_rest/services/calendar_service.py index a9b6fd611..096d34f70 100644 --- a/pms_api_rest/services/calendar_service.py +++ b/pms_api_rest/services/calendar_service.py @@ -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"]