From e16166c4c56a22cd2d76dbd6a8a18f2bb64f8505 Mon Sep 17 00:00:00 2001 From: Pablo Date: Thu, 8 Aug 2019 17:49:29 +0200 Subject: [PATCH] [FIX] Mark __all__ channel room_type avail ids as pushed Some availability may keep unpushed. The channel_room_type_avails references only to the availability of the last room type because of the for loop! Use channel_room_type_avail_ids instead. --- .../models/hotel_room_type_availability/exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotel_channel_connector_wubook/models/hotel_room_type_availability/exporter.py b/hotel_channel_connector_wubook/models/hotel_room_type_availability/exporter.py index 355c7b4e7..a83acf2c6 100644 --- a/hotel_channel_connector_wubook/models/hotel_room_type_availability/exporter.py +++ b/hotel_channel_connector_wubook/models/hotel_room_type_availability/exporter.py @@ -63,7 +63,7 @@ class HotelRoomTypeAvailabilityExporter(Component): channel_message=err.data['message']) return False else: - channel_room_type_avails.with_context({ + channel_room_type_avail_ids.with_context({ 'connector_no_export': True, }).write({ 'channel_pushed': True,