def METHOD_NAME(self):
    if not self.electronic_invoice_subjected:
        self.electronic_invoice_obliged_subject = False
    else:
        if self.supplier_rank > 0:
            self.onchange_country_id_e_inv()
            self.electronic_invoice_obliged_subject = True