def METHOD_NAME(self):
    self.ensure_one()
    cep_update_days = int(
        self.env["ir.config_parameter"]
        .sudo()
        .get_param("l10n_br_zip.cep_update_days", default=365)
    )
    date_delta = fields.Datetime.today() - self.write_date
    if date_delta.days >= cep_update_days:
        cep_values = self._consultar_cep(self.zip_code)
        if cep_values:
            # Update zip object
            self.write(cep_values)