diff --git a/hotel_channel_connector/models/hotel_room_type_availability/common.py b/hotel_channel_connector/models/hotel_room_type_availability/common.py index 888862bec..267db630e 100644 --- a/hotel_channel_connector/models/hotel_room_type_availability/common.py +++ b/hotel_channel_connector/models/hotel_room_type_availability/common.py @@ -68,16 +68,6 @@ class HotelRoomTypeAvailability(models.Model): type!') ] - @api.constrains('max_avail', 'quota') - def _check_max_avail_quota(self): - for record in self: - if record.quota > record.room_type_id.total_rooms_count: - raise ValidationError(_("The quota assigned to the channel manager can't be greater " - "than the total rooms count!")) - if record.max_avail > record.room_type_id.total_rooms_count: - raise ValidationError(_("The maximum simultaneous availability can't be greater " - "than the total rooms count!")) - @api.onchange('room_type_id') def onchange_room_type_id(self): channel_room_type = self.env['channel.hotel.room.type'].search([