edi_endpoint_oca
Base component that lets the OCA EDI framework expose configurable HTTP endpoints tied to specific backends and exchange types.
Key Features
- edi.backend: Backends now track their endpoints with counts, a Manage Endpoints action scoped to the backend type, and a safeguard that blocks archiving while active endpoints remain.
- edi.backend.type: Backend types list their related endpoints so implementers can preconfigure endpoints before assigning them to specific backends.
- edi.endpoint: Each endpoint enforces matching backend and exchange types, auto-prefixes routes with /edi, validates configuration before serving requests, and offers a shortcut to create exchange records that capture the originating endpoint.
- configuration: Dedicated menu, list, form, and search views expose backend, backend type, and exchange type filters plus a stat button to review exchanges per endpoint.
- edi.exchange.record: Exchange records store a readonly link to the endpoint that generated them and surface it in form, list, and search views for traceability.
- edi.exchange.consumer.mixin: Consumer models store the origin endpoint (via the origin exchange record) to simplify searches and reporting.
- ir.actions.server: An action called Sync registry flags selected endpoints for registry synchronization so their HTTP routes stay aligned with the endpoint registry.
- security: Access control grants EDI managers full CRUD on endpoints and applies a multi-company rule that restricts records to the user's companies or shared ones.