mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms_api_rest: mapper agencyId 0 to False in ORM
This commit is contained in:
@@ -350,7 +350,9 @@ class PmsFolioService(Component):
|
|||||||
vals = {
|
vals = {
|
||||||
"pms_property_id": pms_folio_info.pmsPropertyId,
|
"pms_property_id": pms_folio_info.pmsPropertyId,
|
||||||
"sale_channel_origin_id": pms_folio_info.saleChannelId,
|
"sale_channel_origin_id": pms_folio_info.saleChannelId,
|
||||||
"agency_id": pms_folio_info.agencyId,
|
"agency_id": pms_folio_info.agencyId
|
||||||
|
if pms_folio_info.agencyId
|
||||||
|
else False,
|
||||||
"reservation_type": pms_folio_info.reservationType,
|
"reservation_type": pms_folio_info.reservationType,
|
||||||
}
|
}
|
||||||
if pms_folio_info.partnerId:
|
if pms_folio_info.partnerId:
|
||||||
|
|||||||
Reference in New Issue
Block a user