From 32946ac91aa6d85d5a517c54036390d8a6efae35 Mon Sep 17 00:00:00 2001 From: Pablo Date: Fri, 7 Dec 2018 09:02:35 +0100 Subject: [PATCH] [FIX] AttributeError: 'hotel.room.type.class' object has no attribute 'class_code' --- .../models/hotel_room_type/exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hotel_channel_connector_wubook/models/hotel_room_type/exporter.py b/hotel_channel_connector_wubook/models/hotel_room_type/exporter.py index 7b045fc28..325e1406e 100644 --- a/hotel_channel_connector_wubook/models/hotel_room_type/exporter.py +++ b/hotel_channel_connector_wubook/models/hotel_room_type/exporter.py @@ -23,7 +23,7 @@ class HotelRoomTypeExporter(Component): binding.total_rooms_count, binding.channel_short_code, 'nb', - binding.class_id and binding.class_id.class_code or False) + binding.class_id and binding.class_id.code_class or False) except ChannelConnectorError as err: self.create_issue( section='room', @@ -42,7 +42,7 @@ class HotelRoomTypeExporter(Component): binding.list_price, binding.total_rooms_count, 'nb', - binding.class_id and binding.class_id.class_code or False) + binding.class_id and binding.class_id.code_class or False) except ChannelConnectorError as err: self.create_issue( section='room',