mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] Missing new arguments for board and room type class
This commit is contained in:
@@ -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"), {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user