mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms_api_rest: improvement order folio reservations slide by sequence
This commit is contained in:
@@ -339,7 +339,9 @@ class PmsFolioService(Component):
|
||||
pass
|
||||
else:
|
||||
if folio.reservation_ids:
|
||||
for reservation in folio.reservation_ids:
|
||||
for reservation in sorted(
|
||||
folio.reservation_ids, key=lambda r: r.folio_sequence
|
||||
):
|
||||
reservations.append(
|
||||
PmsReservationShortInfo(
|
||||
id=reservation.id,
|
||||
|
||||
Reference in New Issue
Block a user