code: def check_reservation_rooms(self):
          '''
          This method is used to validate the reservation_line.
          -----------------------------------------------------
          @param self: object pointer
          @return: raise a warning depending on the validation
          '''
          ctx = dict(self._context) or {}
          for reservation in self:
              cap = 0
              for rec in reservation.reservation_line:
                  if len(rec.reserve) == 0:
                      raise ValidationError(_(
                          'Please Select Rooms For Reservation.'))
                  for room in rec.reserve:
                      cap += room.capacity
              if not ctx.get('duplicate'):
                  if (reservation.adults + reservation.children) > cap:
                      raise ValidationError(_(
                          'Room Capacity Exceeded \n'
                          ' Please Select Rooms According to'
                          ' Members Accomodation.'))
              if reservation.adults <= 0:
                  raise ValidationError(_('Adults must be more than 0')f check_reservation_rooms(self):
          '''
          This method is used to validate the reservation_line.
          -----------------------------------------------------
          @param self: object pointer
          @return: raise a warning depending on the validation
          '''
          ctx = dict(self._context) or {}
          for reservation in self:
              cap = 0
              for rec in reservation.reservation_line:
                  if len(rec.reserve) == 0:
                      raise ValidationError(_(
                          'Please Select Rooms For Reservation.'))
                  for room in rec.reserve:
                      cap += room.capacity
              if not ctx.get('duplicate'):
                  if (reservation.adults + reservation.children) > cap:
                      raise ValidationError(_(
                          'Room Capacity Exceeded \n'
                          ' Please Select Rooms According to'
                          ' Members Accomodation.'))
              if reservation.adults <= 0:
                  raise ValidationError(_('Adults must be more than 0'))
docs: This method is used to validate the reservation_line.
          -----------------------------------------------------
          @param self: object pointer
          @return: raise a warning depending on the validation