[FIX] _onchange_availability

This commit is contained in:
Dario Lodeiros
2019-06-25 10:07:17 +02:00
parent 86a8b31233
commit ac2127f111

View File

@@ -71,7 +71,8 @@ class HotelRoom(models.Model):
])
# updates new room type values
new_channel_room_type._onchange_availability()
# TODO: _onchange_availability doesn't exist
#new_channel_room_type._onchange_availability()
if new_channel_room_type.ota_capacity > new_channel_room_type.capacity:
new_channel_room_type._get_capacity()
issue_backend_id = new_channel_room_type.backend_id.id