diff --git a/hotel_channel_connector/components/backend_adapter.py b/hotel_channel_connector/components/backend_adapter.py index 07d2058ba..4ce8e6758 100644 --- a/hotel_channel_connector/components/backend_adapter.py +++ b/hotel_channel_connector/components/backend_adapter.py @@ -497,7 +497,7 @@ class WuBookAdapter(AbstractComponent): self._session_info[1], fields.Date.from_string(date_from).strftime(DEFAULT_WUBOOK_DATE_FORMAT), fields.Date.from_string(date_to).strftime(DEFAULT_WUBOOK_DATE_FORMAT), - channel_restriction_plan_id) + int(channel_restriction_plan_id)) if rcode != 0: raise ChannelConnectorError("Can't fetch restriction plans from wubook", { 'message': results, diff --git a/hotel_channel_connector/models/channel_ota_info/importer.py b/hotel_channel_connector/models/channel_ota_info/importer.py index dca9a0521..e236ace26 100644 --- a/hotel_channel_connector/models/channel_ota_info/importer.py +++ b/hotel_channel_connector/models/channel_ota_info/importer.py @@ -23,6 +23,7 @@ class ChannelOtaInfoImporter(Component): channel_ota_info_obj = self.env['channel.ota.info'] ota_info_mapper = self.component(usage='import.mapper', model_name='channel.ota.info') + count = 0 for ota_id in results.keys(): vals = { 'id': ota_id, diff --git a/hotel_channel_connector/models/hotel_room_type_restriction_item/importer.py b/hotel_channel_connector/models/hotel_room_type_restriction_item/importer.py index 4c6a925b8..378f69993 100644 --- a/hotel_channel_connector/models/hotel_room_type_restriction_item/importer.py +++ b/hotel_channel_connector/models/hotel_room_type_restriction_item/importer.py @@ -99,7 +99,6 @@ class HotelRoomTypeRestrictionItemImportMapper(Component): def channel_pushed(self, record): return {'channel_pushed': True} - @mapping def room_type_id(self, record): return {'room_type_id': record['room_type_id']}