OdooWiki OCA HUB

External System HTTP

base_external_system_http folder_open OCA/server-backend open_in_new
Base Licencia: AGPL-3

Este módulo proporciona un adaptador HTTP(S) para el framework base_external_system.

Permite a Odoo comunicarse con sistemas externos a través de HTTP usando una interfaz de adaptador consistente, con soporte para peticiones GET, POST y PUT, resolución de endpoints y pruebas de conexión.

El propio adaptador actúa como cliente y se obtiene mediante el gestor de contexto estándar system.client().

Traducción automática al español (DeepSeek) de la descripción original de OCA, que está en inglés.

auto_awesome Qué hace este módulo

Generado por IA a partir del código · Odoo 16.0

Lets Odoo talk to external web services over HTTP(S): you register an external system with its host, port and path, define named endpoints, and the module sends GET, POST, PUT and DELETE requests and tests the connection.

This module adds an HTTP connector to the external systems framework. On an external system record you get a new tab called "Configure http endpoints" where you list named endpoints, each with a logical name and the remote path to append to the base address.

The connection address is built automatically from the system's host, port and remote path plus the chosen endpoint. If the host has no http:// or https:// prefix, https:// is assumed.

  • Requests can be sent with GET, POST, PUT and DELETE, with optional parameters, data or JSON payload and a timeout (16 seconds by default).
  • If the endpoint name given does not exist on that system, an error is raised.
  • Any response with an error status (400 or above) is turned into a clear error message showing the endpoint, the HTTP status and the returned text.
  • A connection test performs a GET on the base address and reports failure with details.

All users can read endpoints; only administrators (settings group) can create, edit or delete them. Demo data includes an example connection to GitHub with a "tools" endpoint.

The module works on external.system and adds the new models external.system.endpoint and external.system.adapter.http.

Modelos y campos (3)
  • external.system · amplía un modelo existenteendpoint_ids (Endpoints)
  • external.system.endpoint · modelo nuevoname (Logical name for endpoint), endpoint, system_id
  • external.system.adapter.http · modelo nuevo

Texto generado por IA (DeepSeek) al leer el código de la versión 16.0 en GitHub; puede contener errores, así que verifícalo en el código antes de decidir. Aún no está traducido al español. Ver el código en GitHub

Disponibilidad por versión

Revisado: 2026-11-03
Confirmado (verificado en repositorio y rama) Estimado (sin verificar) Sin información

Estado de confirmación: 1 confirmada, 8 sin información de 9 versiones.

Fuentes · Odoo 16.0

Confirmado el 2026-11-03 en la rama 16.0 de OCA/server-backend.

terminal Instalación y uso

Documentación de OCA · Odoo 16.0

Cree un registro de sistema externo y, opcionalmente, defina endpoints.

Ejemplo de configuración:

  • Host: api.example.com
  • Ruta remota: /v1

Defina endpoints como:

  • status → /status
  • items → /items

Utilice el adaptador:

with system.client() as client:
    response = client.get(endpoint="status")
    response = client.post(endpoint="items", json={"name": "Item"})
    response = client.put(endpoint="items", json={"active": True})

Las respuestas se devuelven como objetos requests.Response.

Los errores generan ValidationError con mensajes detallados.

Traducción automática al español (DeepSeek) de la documentación original de OCA; los comandos y el código no se traducen. Sin información verificada en OCA: Instalación, Configuración.

info

Datos importados de GitHub: esta ficha refleja la última revisión del catálogo, no una consulta en directo. Verifica siempre en la documentación del módulo y en staging antes de instalar en producción.