mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms-api-rest: add reservation type to folio/x/reservations service
This commit is contained in:
committed by
Darío Lodeiros
parent
e263fe1ce7
commit
f722d5a2b1
@@ -31,6 +31,8 @@ class PmsReservationShortInfo(Datamodel):
|
|||||||
toAssign = fields.Boolean(required=False, allow_none=True)
|
toAssign = fields.Boolean(required=False, allow_none=True)
|
||||||
overbooking = fields.Boolean(required=False, allow_none=True)
|
overbooking = fields.Boolean(required=False, allow_none=True)
|
||||||
isBlocked = fields.Boolean(required=False, allow_none=True)
|
isBlocked = fields.Boolean(required=False, allow_none=True)
|
||||||
|
reservationType = fields.String(required=False, allow_none=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class PmsReservationInfo(Datamodel):
|
class PmsReservationInfo(Datamodel):
|
||||||
|
|||||||
@@ -560,7 +560,9 @@ class PmsFolioService(Component):
|
|||||||
else 0,
|
else 0,
|
||||||
toAssign=reservation.to_assign,
|
toAssign=reservation.to_assign,
|
||||||
overbooking=reservation.overbooking,
|
overbooking=reservation.overbooking,
|
||||||
isBlocked=reservation.blocked
|
isBlocked=reservation.blocked,
|
||||||
|
reservationType=reservation.reservation_type,
|
||||||
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user