def METHOD_NAME(self, fields_list):
    res = super().METHOD_NAME(fields_list)
    assert self._context.get("active_model") == "account.invoice.download.config"
    download_config = self.env["account.invoice.download.config"].browse(
        self._context["active_id"]
    )
    res["download_config_id"] = download_config.id
    if download_config.ovh_endpoint:
        res["endpoint"] = download_config.ovh_endpoint
    return res