mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms-api-rest: added reservationType in folio.info datamodel
This commit is contained in:
@@ -21,6 +21,7 @@ class PmsFolioInfo(Datamodel):
|
||||
partnerEmail = fields.String(required=False, allow_none=True)
|
||||
state = fields.String(required=False, allow_none=True)
|
||||
amountTotal = fields.Float(required=False, allow_none=True)
|
||||
reservationType = fields.String(required=False, allow_none=True)
|
||||
|
||||
|
||||
class PmsFolioShortInfo(Datamodel):
|
||||
|
||||
@@ -45,6 +45,7 @@ class PmsFolioService(Component):
|
||||
folio.state
|
||||
],
|
||||
amountTotal=round(folio.amount_total, 2),
|
||||
reservationType=folio.reservation_type,
|
||||
)
|
||||
else:
|
||||
raise MissingError(_("Folio not found"))
|
||||
|
||||
Reference in New Issue
Block a user