[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.
This commit is contained in:
Pablo
2019-08-08 17:49:29 +02:00
committed by Dario Lodeiros
parent 6d9698506b
commit e16166c4c5

View File

@@ -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,