mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms_api_rest: children 0 if None @ folio & reservation service
This commit is contained in:
committed by
Darío Lodeiros
parent
8ca214cc80
commit
e5c99e5ba7
@@ -427,7 +427,7 @@ class PmsFolioService(Component):
|
||||
)[reservation.state],
|
||||
children=reservation.children
|
||||
if reservation.children
|
||||
else None,
|
||||
else 0,
|
||||
readyForCheckin=reservation.ready_for_checkin,
|
||||
allowedCheckout=reservation.allowed_checkout,
|
||||
isSplitted=reservation.splitted,
|
||||
|
||||
@@ -96,7 +96,7 @@ class PmsReservationService(Component):
|
||||
stateDescription=dict(
|
||||
reservation.fields_get(["state"])["state"]["selection"]
|
||||
)[reservation.state],
|
||||
children=reservation.children if reservation.children else None,
|
||||
children=reservation.children if reservation.children else 0,
|
||||
readyForCheckin=reservation.ready_for_checkin,
|
||||
allowedCheckout=reservation.allowed_checkout,
|
||||
isSplitted=reservation.splitted,
|
||||
|
||||
Reference in New Issue
Block a user