diff --git a/hotel_channel_connector_wubook/components/backend_adapter.py b/hotel_channel_connector_wubook/components/backend_adapter.py index 14a05666d..4ff5bba63 100644 --- a/hotel_channel_connector_wubook/components/backend_adapter.py +++ b/hotel_channel_connector_wubook/components/backend_adapter.py @@ -132,7 +132,7 @@ class WuBookAdapter(AbstractComponent): availability, shortcode[:4], defboard, - rtype=rtype + rtype ) if rcode != 0: raise ChannelConnectorError(_("Can't create room in WuBook"), { @@ -151,7 +151,7 @@ class WuBookAdapter(AbstractComponent): availability, scode, defboard, - rtype=rtype + rtype ) if rcode != 0: raise ChannelConnectorError(_("Can't modify room in WuBook"), { diff --git a/hotel_channel_connector_wubook/models/hotel_room_type/common.py b/hotel_channel_connector_wubook/models/hotel_room_type/common.py index c61ae509c..85813bb05 100644 --- a/hotel_channel_connector_wubook/models/hotel_room_type/common.py +++ b/hotel_channel_connector_wubook/models/hotel_room_type/common.py @@ -9,16 +9,16 @@ class HotelRoomTypeAdapter(Component): _inherit = 'wubook.adapter' _apply_on = 'channel.hotel.room.type' - def create_room(self, shortcode, name, capacity, price, availability): + def create_room(self, shortcode, name, capacity, price, availability, defboard, rtype): return super(HotelRoomTypeAdapter, self).create_room( - shortcode, name, capacity, price, availability) + shortcode, name, capacity, price, availability, defboard, rtype) def fetch_rooms(self): return super(HotelRoomTypeAdapter, self).fetch_rooms() - def modify_room(self, channel_room_id, name, capacity, price, availability, scode): + def modify_room(self, channel_room_id, name, capacity, price, availability, scode, defboard, rtype): return super(HotelRoomTypeAdapter, self).modify_room( - channel_room_id, name, capacity, price, availability, scode) + channel_room_id, name, capacity, price, availability, scode, defboard, rtype) def delete_room(self, channel_room_id): return super(HotelRoomTypeAdapter, self).delete_room(channel_room_id)