mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms_api_rest: added to_assign in fetch_folio_reservations
This commit is contained in:
@@ -28,6 +28,7 @@ class PmsReservationShortInfo(Datamodel):
|
||||
pricelistId = fields.Integer(required=False, allow_none=True)
|
||||
nights = fields.Integer(required=False, allow_none=True)
|
||||
numServices = fields.Integer(required=False, allow_none=True)
|
||||
toAssign = fields.Boolean(required=False, allow_none=True)
|
||||
|
||||
|
||||
class PmsReservationInfo(Datamodel):
|
||||
|
||||
@@ -483,6 +483,7 @@ class PmsFolioService(Component):
|
||||
numServices= len(reservation.service_ids)
|
||||
if reservation.service_ids
|
||||
else 0,
|
||||
toAssign=reservation.to_assign,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user