[IMP] pms_api_rest: add get_reservation and get_checkin_partners

This commit is contained in:
Sara Lago
2021-11-24 12:58:22 +01:00
committed by Darío Lodeiros
parent d615fbf8b4
commit d0c03f47c0
6 changed files with 152 additions and 38 deletions

View File

@@ -26,8 +26,17 @@ class PmsCalendarService(Component):
)
def get_calendar(self, calendar_search_param):
domain = list()
<<<<<<< HEAD
domain.append(("date", ">=", datetime.fromisoformat(calendar_search_param.date_from)))
domain.append(("date", "<=", datetime.fromisoformat(calendar_search_param.date_to)))
=======
domain.append(
("date", ">", datetime.fromisoformat(calendar_search_param.date_from))
)
domain.append(
("date", "<=", datetime.fromisoformat(calendar_search_param.date_to))
)
>>>>>>> d6e6a667... [IMP] pms_api_rest: add get_reservation and get_checkin_partners
result_lines = []
PmsCalendarShortInfo = self.env.datamodels["pms.calendar.short.info"]
for line in (