'Compute the related field ``self`` on ``records``.'

def _compute_related(self, records):

    others = (records.sudo() if self.related_sudo else records)
    for (record, other) in zip(records, others):
        if ((not record.id) and (record.env != other.env)):
            copy_cache(record, other.env)
        (other, field) = self.traverse_related(other)
        record[self.name] = other[field.name]
