def METHOD_NAME(self):
    for asset in self:
        comp = asset.get_linked_aa_info_records().mapped("company_id")
        if len(comp) > 1 or (comp and comp != asset.company_id):
            raise ValidationError(
                _(
                    "`{}`: cannot change asset's company once it's already"
                    " related to accounting info."
                ).format(asset.make_name())
            )