mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] unfix... occupancy includes children...
This commit is contained in:
@@ -101,9 +101,10 @@ class HotelReservationImporter(Component):
|
||||
tax_inclusive = True
|
||||
persons = room_type_bind.ota_capacity
|
||||
# Info about the occupancy of each booked room (it can be empty)
|
||||
occupancy = next((item for item in book['rooms_occupancies'] if item["id"] == broom['room_id']), False)
|
||||
if occupancy:
|
||||
persons = occupancy['occupancy']
|
||||
# BUG: occupancy includes children... Review adults by OTA
|
||||
# occupancy = next((item for item in book['rooms_occupancies'] if item["id"] == broom['room_id']), False)
|
||||
# if occupancy:
|
||||
# persons = occupancy['occupancy']
|
||||
# Dates
|
||||
real_checkin_str = real_checkin.strftime(
|
||||
DEFAULT_SERVER_DATETIME_FORMAT)
|
||||
|
||||
Reference in New Issue
Block a user