def METHOD_NAME(self):
    for record in self:
        result = True
        disable_ie_validation = (
            record.env["ir.config_parameter"]
            .sudo()
            .get_param("l10n_br_base.disable_ie_validation", default=False)
        )
        if not disable_ie_validation:
            if record.inscr_est and record.state_id:
                state_code = record.state_id.code or ""
                uf = state_code.lower()
                result = fiscal.ie.validar(uf, record.inscr_est)
            if not result:
                raise ValidationError(_("Estadual Inscription Invalid !"))