def METHOD_NAME(self):
    for att in self:
        if att.in_invoice_ids and len(att.in_invoice_ids) == att.invoices_number:
            att.registered = True
        else:
            att.registered = False