Skip to main content
Tuqui starts in read-only mode. For the assistant (or any MCP client) to modify data in Odoo, the model must be added to the workspace’s write models whitelist and the operations you want to allow must be enabled. Without a model on that whitelist, writes are impossible. The gate lives in the Tuqui server, not in the prompt.

Does Tuqui write to Odoo by default?

No. Every workspace starts read-only.

How is it enabled?

An admin enables the model and operations in the panel.

Can the scope be restricted?

Yes. With an optional domain per model.

Are there confirmations?

Yes. In the chat, every write asks for your approval. Deletes and irreversible methods also wait for your reply to the preview.

How to enable it

Requires the admin role in the workspace and the Advanced Odoo feature (odoo_advanced) on. If the Write whitelist section doesn’t appear in Settings → Permissions, that feature is not on in your workspace: ask support to turn it on.
  1. Open Settings → Permissions.
  2. In the Write whitelist section, type the technical name of the Odoo model in Add model (for example, sale.order, crm.lead, project.task) and click Add. Permissions screen: Messages in Odoo and Write whitelist, with the Add model field
  3. The model appears as a new row with four checkboxes: create, write, unlink and execute. All start unchecked.
  4. Check the operations you want to allow and click Save. The button appears on the row when there are unsaved changes.
  5. (Optional) Click Add domain to open the domain editor. See Domains below. Once saved, the model shows the filtered badge and how many records match.
To remove a model from the whitelist, use the trash icon on the row and confirm with Remove. If you ask Tuqui to write to a model that isn’t on the whitelist, it tells you. If you’re an admin, in the chat it offers to add it itself and asks for your approval. If you’re not, it asks you to request it from an admin. You can also manage the whitelist from the chat or over MCP with the odoo_write_models tool: any member reads it (list, or get for one model), and admins add a model, change its flags or its domain (save) or remove it (delete). Those two actions always ask for your confirmation.
If you don’t know the technical name of the model, ask Tuqui from the chat: “What is the Odoo technical model name for X?”

If you use the Tuqui module in Odoo

With the Tuqui companion module installed in your Odoo, Tuqui’s Read-only mode is on by default in Odoo’s settings. Exception: if your Odoo 19 already had the module before this setting existed, the update left it off. While it is on, Odoo refuses every write even if the model is on the whitelist, and Settings → Permissions shows the Writing is disabled notice. To write, turn off Read-only mode in the Tuqui module settings in your Odoo. The notice’s Enable it in Odoo button opens your Odoo.

How it works

The whitelist lives in the workspace_write_models table. Each row maps a (workspace, Odoo model) pair and has four independent permissions: Before executing any write, the tool consults the whitelist and rejects the operation if the matching flag is off. Permission to write one model does not imply permission to write another: each model is authorized separately. For the write tools to appear, in the chat or over MCP, the odoo_advanced feature must also be on in the workspace. Without it, the tools aren’t exposed and the whitelist isn’t consulted.
odoo_message_post also depends on odoo_advanced, but it does not go through this whitelist: it depends on the workspace’s messaging mode (Settings → Permissions, Messages in Odoo section). See Messaging (chatter).

Layers that always apply

Even with a model enabled, these protections apply:
  • Sensitive fields blocked: passwords, API keys, OAuth tokens, 2FA secrets and session fields are explicitly rejected on create/write. They are not silently filtered: if they show up in the payload, the operation fails.
  • Dangerous methods blocked in odoo_execute: create, write, unlink (covered by dedicated tools), sudo, with_user, with_company, with_env, invalidate_cache, invalidate_recordset, flush*. Any method starting with _ (Odoo internal API) is also blocked. So are messaging methods (message_post and similar, and WhatsApp sends): to post to the chatter there is odoo_message_post.
  • Approval in the chat. In the Tuqui chat, every tool that writes asks for your approval before it runs: Just this once or Always allow. It doesn’t ask if the tool is already on Always allow, set by you or by an admin in Settings → Permissions.
  • Your reply to the preview, for what can’t be undone. The model sets confirm=true, so for the riskiest operations it is not enough: in the Tuqui chat, the operation only runs if you replied after seeing the preview. Approving or allowing the tool doesn’t remove this step. See Confirmations and caps.
    • odoo_write: runs in a single call, up to 200 ids. Above that, it is refused. The exception is forcing a workflow field by hand (for example, the state): in the chat it returns a preview and waits for your reply.
    • odoo_unlink: always returns a preview and waits for your reply. Over MCP, it asks you to approve the delete in Tuqui. Cap: 50 ids per call.
    • odoo_execute: reversible methods (for example, action_confirm) run in a single call. Irreversible ones record a fact with a legal number or a stock move, or send something out: action_post, action_validate, button_validate, button_immediate_transfer, send_mail, action_send_mail, action_invoice_sent and action_send_and_print. In the chat they return a preview and wait for your reply. On a payment (account.payment), action_post waits for your reply only if the payment goes through a payment provider. Cap: 200 ids per call.
  • Over MCP, your assistant approves. Claude, ChatGPT and the other clients ask you before each call. That is why, over MCP, odoo_write with a workflow field and the irreversible methods of odoo_execute run in a single call, without a preview.
  • With nobody to reply, nothing irreversible. In scheduled tasks and agents, irreversible methods are refused. The only exception is validating deliveries (button_validate or button_immediate_transfer on stock.picking) in a scheduled task of yours with Act without your approval on.

Per-member permissions

The whitelist applies to the whole workspace. On top of it, an admin can decide which tools each member uses. Open Settings → Members, go to the person’s profile and find the Tools card:
  • Can write: a single switch. When off, that person gets no tool that writes (in Odoo or in connectors), neither in the chat nor over MCP. They can still read.
  • Advanced: choose tool by tool: to take specific tools away from that person when the switch doesn’t cover it. Lift the restriction gives them all back.
Anyone who joins the workspace starts with Can write on. The exception is people who come in through Sync with Odoo, if an admin turned off Can write by default in the sync settings: those people come in read-only.

Risks to keep in mind

Enabling writes shifts part of the control over Odoo’s state to the LLM. Before enabling a model, it pays to understand what can go wrong:
  • Unexpected mutations from LLM interpretation. The model decides which fields to touch and what values to use based on the natural-language request. An ambiguous instruction can translate into a write you didn’t expect. odoo_write shows no preview: your approval in the chat is the barrier.
  • Always allow. With Always allow, in the chat or in your assistant, writes run without asking you, up to 200 records per call. Over MCP, that includes posting, validating and sending, even if the assistant read it as an instruction in an Odoo text (an email, the chatter). Give Always allow only to what you’re sure of.
  • Custom Odoo methods. can_execute lets the LLM invoke any public method not on the block list. Custom methods from client modules can do almost anything (send mail, call external APIs, create accounting documents). Enabling execute on a model amounts to trusting all of its public methods.
  • Cascading deletes. odoo_unlink honors Odoo’s ondelete rules, so deleting a record can pull related ones with it. The preview shows direct records, not the cascade.
  • Odoo user permissions. The whitelist filters which tools the LLM can use; the effective permissions in Odoo are still those of the connected user’s API key. If that key has admin role, the whitelist is the only line of containment on Tuqui’s side.
  • Asynchronous audit. The log lives in Tuqui, but the functional owner of the data is Odoo. If you need strong traceability (who/what/when from Odoo), complement with mail.message or an audit module on the Odoo side.
Rule of thumb: start with create/write on non-critical models (notes, tasks, opportunities), leave unlink and execute off until you have a clear use case, and ramp up one step at a time.

Domains: how to restrict scope

By default, when you enable a model on the whitelist, the permission applies to all records of that model (always within what the user’s API key can see). That is usually too broad: enabling write on sale.order means any sales order in the system can be modified. To narrow it down, every whitelist row has an optional domain field — an Odoo domain expression (the same syntax you use in search / search_read).

What it does

  • Domain empty (default): the permission applies to any existing record of the model.
  • Domain set: before executing the operation, Tuqui resolves the domain combined with the requested ids against Odoo. Ids that do not match the domain are rejected with an out-of-scope error. The operation runs only if every requested id is within scope.

Which operations it applies to

The domain filters operations on existing records:
  • odoo_write (ids being modified)
  • odoo_unlink (ids being deleted)
  • odoo_execute when ids are passed (instance methods)
  • odoo_html when it edits
It does not apply to:
  • odoo_create — there is no existing record to filter; any field value could create a record outside the domain.
  • odoo_copy — copying counts as creation.
  • odoo_execute without ids (@api.model methods).
If you also want newly created records to stay within scope, complement with Odoo record rules or a skill that validates values before creating.

Examples

Quotations only (not confirmed orders):
With this, odoo_write on sale.order can only modify draft or sent quotations. A confirmed order is out of scope and gets rejected. Records from a specific company:
Multi-company + assignee:
The editor also accepts Python-flavored syntax (tuples, single quotes, True/False/None); it is normalized to JSON on save.
  1. Enable the model with can_write or can_unlink and an empty domain in staging to understand which records are involved.
  2. Tune the domain so it only covers the subset your flow needs to touch (by state, company, assignee, category).
  3. Validate that the number of matching records is what you expect. The domain editor shows it when you save.
  4. Promote the change to production.
A well-scoped domain turns a broad permission (“can modify opportunities”) into an operational one (“can modify open opportunities assigned to team X”), without having to touch access rules in Odoo.