The policy decides before the agent writes
The module's policy rules can match the API key, requesting user, Odoo group, company, model, operation, business action, record domain and a numeric threshold. A matched rule can allow, require confirmation, require approval or deny the operation. That means an ordinary CRM note and a high-value accounting change do not need the same path.
Policies do not replace Odoo access rights. Execution returns to the original requesting identity; the approver does not become the execution user. The operation still passes through Odoo's own validation and permissions.
What the approval queue stores
A write request records the tool, model, record, operation, exact payload, diff, record-state snapshot, fingerprint, matched policy, requester, company, expiry and eventual result. Request records are immutable after creation and cannot be deleted through the ordinary model operation.
The Odoo approval screen derives a plain-language target and change summary while keeping the JSON request and diff available as technical evidence. An authorised approver can approve or reject with a reason. By default, approval tools are not exposed back through MCP; the Odoo interface remains the review point unless an administrator explicitly enables remote approval.
The journal records what execution changed
After execution, the change journal associates the request, key, user, company, tool, model, record, operation and captured before-and-after states. Journal entries are immutable through normal calls. The separate audit log records approval, execution, failure and undo events.
Review the resulting record in Odoo as well as the journal. A successful tool response means the operation completed; it does not prove that the business outcome was appropriate.
Undo is deliberately narrower than “roll back anything”
Only MCP administrators can invoke automatic undo. Before changing the record, the module reads its current state and compares it with the journal's captured after-state. If someone or another process changed the record later, undo is marked as a conflict and stops rather than overwriting that newer work.
- A journaled create can be removed when the record is still in the expected state.
- A journaled write can restore captured fields when there is no conflict.
- A delete is reversible only when it was implemented as a safe archive on a model with an active field.
- Hard deletes, external effects and unsupported business actions have no safe automatic undo.
Acceptance tests before enabling writes
- Submit an allowed low-risk write and inspect its preview without executing it.
- Verify an unauthorised user and a self-approving requester are denied.
- Approve a controlled change and reconcile the journal with the Odoo record.
- Change the record again, then confirm undo detects the conflict.
- Test expiry, rejection, failed execution and retention cleanup.
Start with the read-only design in Give Claude read-only access to Odoo and introduce one write workflow at a time.
Frequently asked questions
Can the AI approve its own Odoo write request?
Not by default. The requester cannot approve its own request unless the matched policy rule explicitly allows self-approval, and the approver must belong to an authorised Odoo approval or administration group.
Can every AI change be undone automatically?
No. Automatic undo is limited to journaled creates, writes and safely archived deletes when the record still matches the captured after-state. External effects, hard deletes, later conflicting edits and unsupported operations cannot be reversed automatically.
How long are change snapshots retained?
The module setting defaults journal retention to 30 days and can be configured. A value of zero means indefinite retention. Set the period from the organisation’s audit and data-retention requirements rather than relying on the default.
Continue in this topic
Design approval around the business action
Share the proposed Odoo action, models, approver role, thresholds and evidence requirements. We will map the policy and failure cases before enabling writes.
Plan write governance →