[IMP] pms_api_rest: get_reservations in pms_dashboard_service

This commit is contained in:
Sara Lago
2023-09-01 10:27:54 +02:00
committed by Darío Lodeiros
parent 21ce6ac762
commit 7511af32fc
2 changed files with 25 additions and 23 deletions

View File

@@ -3,16 +3,17 @@ from marshmallow import fields
from odoo.addons.datamodel.core import Datamodel
class PmsDashboardCheckinsSearchParam(Datamodel):
_name = "pms.dashboard.checkins.search.param"
class PmsDashboardPendingReservationsSearchParam(Datamodel):
_name = "pms.dashboard.pending.reservations.search.param"
dateTo = fields.String(required=False, allow_none=True)
dateFrom = fields.String(required=False, allow_none=True)
class PmsDashboardCheckins(Datamodel):
_name = "pms.dashboard.checkins"
class PmsDashboardPendingReservations(Datamodel):
_name = "pms.dashboard.pending.reservations"
id = fields.Integer(required=True, allow_none=False)
checkinPartnerState = fields.String(required=False, allow_none=True)
date = fields.String(required=False, allow_none=True)
state = fields.String(required=False, allow_none=True)
reservationType = fields.String(required=False, allow_none=True)
checkin = fields.String(required=False, allow_none=True)