(self, field, limit=PREFETCH_MAX)
return self.browse(ids)
Return records to prefetch that have no value in cache for ``field``
            (:class:`Field` instance), including ``self``.
            Return at most ``limit`` records.
Return records to prefetch that have no value in cache for ``field``
            (:class:`Field` instance), including ``self``.
            Return at most ``limit`` records.
Return records to prefetch that have no value in cache for field ( : class : Field instance ) including self . Return at most limit records .
def _in_cache_without(self, field, limit=PREFETCH_MAX):
        """ Return records to prefetch that have no value in cache for ``field``
            (:class:`Field` instance), including ``self``.
            Return at most ``limit`` records.
        """
        ids = expand_ids(self.id, self._prefetch_ids)
        ids = self.env.cache.get_missing_ids(self.browse(ids), field)
        if limit:
            ids = itertools.islice(ids, limit)
        # Those records are aimed at being either fetched, or computed.  But the
        # method '_fetch_field' is not correct with new records: it considers
        # them as forbidden records, and clears their cache!  On the other hand,
        # compute methods are not invoked with a mix of real and new records for
        # the sake of code simplicity.
        return self.browse(ids)
def _in_cache_without ( self , field , limit = PREFETCH_MAX ) : ids = expand_ids ( self . id , self . _prefetch_ids ) ids = self . env . cache . get_missing_ids ( self . browse ( ids ) , field ) if limit : ids = itertools . islice ( ids , limit ) # Those records are aimed at being either fetched, or computed.  But the # method '_fetch_field' is not correct with new records: it considers # them as forbidden records, and clears their cache!  On the other hand, # compute methods are not invoked with a mix of real and new records for # the sake of code simplicity. return self . browse ( ids )