mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[UPD] TODO: reduce quota by one
This commit is contained in:
@@ -181,6 +181,7 @@ class ChannelHotelRoomTypeAvailability(models.Model):
|
||||
|
||||
# Auto-Fix channel quota and max availability
|
||||
vals_avail = {}
|
||||
# TODO: reduce quota by one instead of adjust to current channel availability
|
||||
if room_type_avail_id.quota > avail:
|
||||
vals_avail.update({'quota': avail})
|
||||
_logger.info(vals_avail)
|
||||
|
||||
Reference in New Issue
Block a user