mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX][WIP] 'avail' is not a field name
This commit is contained in:
@@ -31,7 +31,7 @@ class HotelRoomTypeAvailabilityExporter(Component):
|
||||
date_dt = fields.Date.from_string(channel_room_type_avail.date)
|
||||
days.append({
|
||||
'date': date_dt.strftime(DEFAULT_WUBOOK_DATE_FORMAT),
|
||||
'avail': channel_room_type_avail.avail,
|
||||
'avail': channel_room_type_avail.max_avail, # TODO max_avail __or__ quota ¿?
|
||||
'no_ota': channel_room_type_avail.no_ota and 1 or 0,
|
||||
# 'booked': room_type_avail.booked and 1 or 0,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user