mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms_api_rest: Fix create folio without agency
This commit is contained in:
@@ -609,7 +609,7 @@ class PmsFolioService(Component):
|
||||
else:
|
||||
vals = {
|
||||
"pms_property_id": pms_folio_info.pmsPropertyId,
|
||||
"agency_id": agency.id,
|
||||
"agency_id": agency.id if agency else False,
|
||||
"sale_channel_origin_id": self.get_channel_origin_id(
|
||||
pms_folio_info.saleChannelId, pms_folio_info.agencyId
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user