An external AI assistant should connect to Odoo through a deliberate set of business capabilities, each with a clear purpose, access boundary and observable result. The interesting question is not whether a model can produce an API call. It is whether the company can explain and control what that call will do, for whom, and under which conditions. Begin with one useful workflow and design the path from a question to a verified outcome before granting broader access.
First decide why the assistant should sit outside Odoo
An external assistant may make sense when the job combines Odoo records with another system or when people already work in a separate interface. For example, an operations coordinator might need an order reference from Odoo and a delivery exception from a carrier service. That does not automatically justify moving every conversation and document into a new platform. List the information and actions required for the specific job before selecting its interface.
Compare the proposed integration with the capability available in the actual Odoo environment. A native feature, a third-party add-on and a custom connector have different owners and maintenance paths. Ask which component interprets the request, which executes the action and who supports each boundary. The answer should remain understandable when the model or the interface is replaced later.
Odoo's JSON-2 documentation restricts external API access under its commercial plans to Custom; One App Free and Standard are excluded.[1]
Check the target deployment separately. Do not turn a pricing-plan statement into an unsupported claim about every self-hosted installation or assume that a working test key settles the production arrangement.
Preserve the identity of the person asking
A request that begins with a person should retain that person's authority throughout the workflow. A shared assistant must not quietly turn a restricted user's question into an administrator's query. Decide whether actions run with delegated user permissions or a dedicated integration identity, and how the original requester remains visible. This is a design decision with consequences for both access and investigation.
Odoo documents model access rights, record rules and field restrictions. It also warns that parameters to custom public methods cannot be trusted merely because the method was called. Review the actual configuration and custom code rather than assuming that an authenticated connection makes every requested operation appropriate.[2]
Test the boundaries with realistic roles. Could a coordinator see another company's order? Could a salesperson retrieve a field they cannot open in the application? Could a background task complete after the requester's access was removed? Define expected outcomes before testing. A denied action should produce a useful explanation and a route to an authorised colleague, not a suggestion to broaden the assistant's account until the error disappears.
Give the assistant tools that mean something to the business
A tool such as “prepare a revised delivery proposal” is easier to govern than a general instruction to edit arbitrary records. Its contract can identify the order, proposed date, reason and relevant evidence. The execution component can check whether the order is still eligible and return a structured result. The model remains useful for understanding the request and preparing the inputs, without becoming the final authority on every business rule.
Keep reading and writing separate. A tool that retrieves an order summary should not have an optional parameter that also confirms the order. A proposal should be distinguishable from a completed change, including in its returned status. Use explicit outcomes such as prepared, rejected, applied or awaiting review. A fluent paragraph saying everything is handled is not a substitute for checking the recorded result.
Avoid designing one enormous tool merely to reduce the number of integration steps. Smaller capabilities can be inspected and evaluated, provided that operations which must succeed together remain a coherent business action. The tool boundary should follow the commitment being made, not the convenience of whichever database table happens to contain the fields.
- RequestThe user identifies the job and relevant record.
- PrepareThe assistant retrieves permitted context and proposes an action.
- CheckExecution code verifies authority, approval and the current state.
- ApplyThe allowed business operation runs with a recorded result.
- ConfirmThe user sees what changed and any unfinished consequence.
Give context without turning documents into instructions
OWASP describes indirect prompt injection through material an assistant reads and recommends enforcing authorisation outside the model. A retrieved email or document is evidence to inspect, not a new authority over the assistant's tools. This distinction matters even when the material appears inside a legitimate customer record.[3]
For the proposed workflow, define a compact context package: the relevant order identifier, a selected set of fields, the delivery event and the approved operating instructions. Keep credentials out of the model's input. Treat a sentence inside a supplier attachment as document content, even if it asks the assistant to send information elsewhere or skip review. A polite or apparently urgent request inside a document does not create permission.
Decide what crosses the external provider boundary and how it is retained. Avoid sending a complete customer history when the task requires one order and one event. Check the provider arrangement against the company's requirements instead of making a blanket claim that data never leaves Odoo or is never retained. Record these decisions in the implementation brief so that a later feature does not expand the information flow without review.
Walk through one delivery exception from beginning to end
Consider a hypothetical equipment supplier whose carrier reports a delay. The proposed assistant finds the relevant order, summarises the event and prepares a revised customer message. It may also propose a new promised date if the authorised operating process supplies enough information. This is an illustrative integration design, not a description of a tested connector or a customer project.
The coordinator sees the existing promise, the proposed change, the source of the carrier event and any missing information. They can revise the wording or reject the change. Approval refers to this particular order and proposal. If someone changes the order after the proposal was prepared, the execution step checks the current state again rather than applying an outdated decision unquestioningly.
Recording a new date and sending a message are separate consequences. The interface should make clear whether approval covers both. If the date is saved but the communication fails, the result must show that split and offer the next appropriate step. A single green “done” message would conceal work that still matters to the customer. The example demonstrates why the design needs explicit outcomes, even when the conversation itself feels simple.
Plan for partial completion and repeated requests
Each JSON-2 call runs in its own transaction; several calls are not one atomic operation. Related database changes may need one server-side method.[1]
For an integration designer, this means the business action must be analysed before it is divided into calls, especially when another system is involved.
Imagine the assistant submits a change and then loses the connection before receiving the response. Retrying blindly could repeat a side effect. A proposed design should attach a stable operation identifier, record its outcome and check that outcome before repeating the work. This is often called idempotency: a repeated request should not accidentally create a second business event. It needs implementation in the relevant components; naming the concept does not make the integration behave that way.
Also distinguish an internal transaction from an external consequence. A database rollback does not recall an email that another service has already sent. Define the order of operations, what can be retried and who handles an unresolved state. For the delivery example, the recovery screen should show whether the promise changed, whether the message was queued and whether delivery of that message is known. “Something went wrong” is insufficient information for safe continuation.
| Situation | Visible result | Next step |
|---|---|---|
| Missing carrier detail | Proposal marked incomplete | Ask for the missing fact |
| Order changed after approval | Outdated proposal rejected | Prepare a fresh proposal |
| Request times out | Outcome unresolved | Check the operation record |
| Date saved, message failed | Partial completion shown | Retry only the pending communication |
| Insufficient access | Action denied without broader access | Refer to the authorised owner |
Keep operations visible after the demonstration
An integration needs a record of the request, the authorised proposal, the action taken and the final status. Store enough information to explain an outcome without turning logs into a second uncontrolled customer database. Link to the business record where possible, and decide who can inspect operational details. Do not log secrets or retain entire conversations merely because storage is convenient.
Treat availability and cost as part of the workflow. Set limits on how much background work one request can start and define what happens when the external service is slow, unavailable or no longer permitted. A user should know whether work is queued, awaiting review or stopped. Repeatedly pressing the same button should not launch multiple invisible attempts with uncertain outcomes.
Keep a practical manual route. The coordinator should still be able to open the order, review the carrier information and communicate through the approved process. If the business cannot continue without the assistant, its operating requirements are more demanding than those of a convenient drafting aid. Make that distinction before promising the first release, and give support a way to disable a problematic capability without removing access to ordinary work.
Ask for evidence of the boundary, not only a successful answer
A useful review includes an ordinary request, missing information, insufficient permission, an outdated proposal, a timeout after submission and a repeated request. Add a harmless test document containing an instruction that conflicts with the permitted task. Observe the attempted actions and saved records, not just the assistant's explanation of what it intended to do. A reassuring answer cannot demonstrate that the boundary was enforced.
The first implementation brief should name the supported task, allowed data, tools, approval points, recovery behaviour and owner. Odexer's proposed contribution is to connect those business decisions with Odoo integration, validation and platform operation. The result should be a small capability whose behaviour can be inspected and maintained. Expanding it then becomes a deliberate business decision supported by evidence from the first workflow.
Practical questions
Can we connect any external model to our Odoo database?
The relevant question is whether the model interface, connector, Odoo deployment and company requirements fit the proposed workflow. Verify authentication, API availability, data handling and supported operations. This article describes an integration pattern; it does not certify a particular model, connector or configuration.
Is read-only access enough to remove the risk?
It prevents the specific writes that are genuinely blocked, but the design must still control what data can be read and where it can be sent. Check the user’s scope, selected fields and external information flow. A read-only pilot remains useful because it reduces the number of consequences being evaluated at once.
Does a human approval button make an action safe?
Only if the reviewer sees the exact proposed action and the execution component verifies that approval for the same action under current conditions. A general approval earlier in the conversation should not silently authorise different targets or expanded changes.
Sources and verification
Primary sources checked on 14 October 2026. Product behaviour still depends on the version, configuration and tested process.


