mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms-api-rest: fix naming agency -> agencyId service folio
This commit is contained in:
committed by
Darío Lodeiros
parent
f9b179b3fe
commit
6daf4245ca
@@ -31,7 +31,7 @@ class PmsFolioInfo(Datamodel):
|
||||
)
|
||||
pricelistId = fields.Integer(required=False, allow_none=False)
|
||||
saleChannelId = fields.Integer(required=False, allow_none=False)
|
||||
agency = fields.Integer(required=False, allow_none=False)
|
||||
agencyId = fields.Integer(required=False, allow_none=False)
|
||||
externalReference = fields.String(required=False, allow_none=True)
|
||||
closureReasonId = fields.Integer(required=False, allow_none=True)
|
||||
preconfirm = fields.Boolean(required=False, allow_none=True)
|
||||
|
||||
@@ -351,7 +351,7 @@ class PmsFolioService(Component):
|
||||
"pms_property_id": pms_folio_info.pmsPropertyId,
|
||||
"partner_id": pms_folio_info.partnerId,
|
||||
"sale_channel_origin_id": pms_folio_info.saleChannelId,
|
||||
"agency_id": pms_folio_info.agency,
|
||||
"agency_id": pms_folio_info.agencyId,
|
||||
"reservation_type": pms_folio_info.reservationType,
|
||||
}
|
||||
folio = self.env["pms.folio"].create(vals)
|
||||
|
||||
Reference in New Issue
Block a user