SaaS DiaryA solo developer's diary of building and running software

Home › Tech log

Tech log

AI assistant for Odoo Community: ask your Odoo data in plain English with your own OpenAI, Claude or Gemini key (Odoo 20)

What Odoo Community includes, why exporting to ChatGPT falls short, and how to get answers you can check, read-only and within access rights

Published Author GRAMSHIFT5 min read

Contents
  1. What Odoo Community includes
  2. The usual workarounds, and where they stop
  3. What to check before an AI reads your ERP data
  4. Ask your Odoo data in plain English
  5. Frequently asked questions

To ask questions about your Odoo data in plain English on Odoo Community, you need an add-on: Odoo 20 Community has no AI assistant that answers questions about your records. With an add-on such as AI Data Assistant, ChatGPT (OpenAI), Claude, Gemini or a local Ollama model answers questions like "What were confirmed sales per month this year?" inside Odoo with your own key, as a table you can check, read-only and within each user's access rights, which is what makes it safe to let it read your data. Below: what Odoo Community includes, the usual workarounds and their limits, what to check before you let an AI read your ERP data, and how to set one up, checked against the Odoo 20 source.

  • Odoo Community has no AI assistant. Its built-in AI only writes text, in the editor and when the website builder drafts pages, through Odoo's own text generation service. Nothing in it answers questions about your records.
  • Exporting to Excel and pasting into ChatGPT works for one question, but the data is a snapshot, the export can include more than you meant to share, and nobody can check how the numbers were computed.
  • An in-Odoo assistant looks the data up live, with the rights of the person asking, and can show the records behind every number.
  • Safety is the part to check: the AI should only be able to read, only what the user may see, and never run its own SQL.

What Odoo Community includes

Odoo 20 Community has no module named or working like an AI assistant. The AI it does have writes text: in the HTML editor you can ask it to write or rewrite a text, and the website builder uses it to suggest themes, draft page text and shop categories. These requests go to Odoo's own text generation service. None of them reads your sales orders, invoices or contacts, and none answers questions about them.

The reporting tools are still there and are good: list views with grouping, pivot and graph views, and exports. They answer any question, as long as you know which model, which filter and which grouping to pick. An AI assistant does that picking for you: you type the question, it chooses the model, the filter and the grouping, and Odoo computes the numbers.

The usual workarounds, and where they stop

  • Export to Excel, then ask ChatGPT or Claude. Fine for a one-off question. But you have to export again for every new question, the file often contains columns you did not mean to share, and the AI computes totals from whatever you pasted: if the export missed records, the answer is wrong and nothing tells you.
  • Connect an outside AI app to Odoo through the API. Desktop AI apps can call Odoo through connectors (MCP servers, automation tools). This works for people comfortable with API keys and connector set-up, but each user needs a key (or everyone shares one), and a key acts with its user's full rights, including writing.
  • Build reports in advance. Saved filters, pivot views and dashboards answer the questions you thought of in advance. New questions still need someone who knows Odoo's models.

What to check before an AI reads your ERP data

Most of the risk is not in the AI model, it is in what the assistant lets the model do. Before installing any assistant, check four things:

  • Can it change data? An assistant that can create or write records can do so by mistake, or because text inside a record told it to. For questions, read-only is enough, and it is safest when the database itself refuses writes, not only the prompt.
  • Whose rights does it use? It should run as the person asking, so a salesperson who sees only their own orders gets answers from their own orders. An assistant running as administrator shows everyone everything.
  • Does the AI write SQL? SQL bypasses Odoo's access rights and record rules. Fixed lookups (search records, group and total) keep Odoo's rules in force.
  • Can you check the answer? AI models misread questions. A button that opens the exact records behind a number in Odoo's normal list view turns "trust me" into something you can verify in one click.

Ask your Odoo data in plain English

We made AI Data Assistant for this (GRAMSHIFT, Odoo 18, 19 and 20 Community and Enterprise, self-hosted or Odoo.sh; Odoo Online does not accept third-party Python modules). You open it from the top bar of any screen and ask in any language. The answer comes as numbers and a table, and every table has an Open in Odoo button that opens the matching records in the normal list view with the same filter (and the same grouping where the list view supports it), ready to filter further or export. It is listed for Odoo 20, Odoo 19, Odoo 18.

  • Your own AI key: OpenAI, Anthropic Claude, Google Gemini, or an OpenAI-compatible server such as Ollama or LM Studio. One-time purchase; you pay your AI provider directly for what you use, and a monthly token limit per user keeps the bill predictable.
  • Read-only by the database: read-only is enforced by the database, not by instructions to the AI, so any write attempted during a lookup is refused.
  • The asking user's rights: lookups run as that user, never with superuser rights, so access rights, record rules and the selected companies apply.
  • No SQL from the AI: it can only list models, list fields, read records and compute totals and groups. Fields whose names mark them as passwords, API keys, tokens, PINs or secrets, file contents, attachments and system parameters are blocked, and administrators can limit which models it may read.

Set-up: install the module, open AI Assistant > Settings, choose the provider and paste the key, then click the AI icon in the top bar. The provider you chose receives the questions, the earlier messages of the conversation, the user's name, the date, time zone and company names, and the results of the lookups; with a local model they never leave your network. If you also let outside AI agents use Odoo API keys, AI API Key Permissions makes those keys read-only and AI & API Audit Log records what each key changed.

Frequently asked questions

Is there an AI assistant for Odoo Community?

Not built in: the AI of Odoo 20 Community only writes text (editor, website builder). An add-on such as AI Data Assistant adds an assistant that answers questions about your records with your own OpenAI, Claude, Gemini or Ollama key, read-only and with the rights of the person asking.

Can I ask questions about my Odoo data in plain English?

Yes, with an assistant module: ask "Which invoices are overdue and how much?" or "Top 10 customers by revenue" and it looks the data up with Odoo's own search and grouping, then shows a table with a button that opens the same records in Odoo.

Can I use my own OpenAI or Claude API key in Odoo?

Yes. AI Data Assistant takes your own OpenAI, Anthropic Claude, Google Gemini or OpenAI-compatible (Ollama, LM Studio) key; you pay the provider directly, and a monthly token limit per user can be set.

Is it safe to let ChatGPT or Claude read my Odoo data?

Check that the assistant is read-only (ideally enforced by the database), runs with the asking user's rights instead of an administrator's, never lets the AI write SQL, and lets you open the records behind each answer. With a local model, the data never leaves your network.

Is AI Data Assistant available for Odoo 19 or Odoo 18?

Yes. AI Data Assistant is listed separately for Odoo 20, Odoo 19 and Odoo 18 on the Odoo Apps Store. It is read-only by default and uses your own OpenAI, Claude, Gemini or Ollama key on every version.

Related articles

Tech logKPI dashboard for Odoo Community 20: shared dashboards from any list or pivot, where each user sees only their own numbersOn Odoo 20 Community you can view ready-made dashboards but not build your own or share one with your team. An add-on turns any list, pivot or graph into a number card or chart from the gear menu, and counts every card with the viewer's own access rights, so salespeople see only their own totals. Tech logStop salespeople changing the unit price and hide cost in Odoo 17 to 20Odoo Community (17 to 20) has no setting to make Unit Price read-only for salespeople or to hide the product cost from them: cost and margin are open to every internal user, and a field made read-only in the form view can still be changed by import or API. What standard Odoo offers, the free workarounds, and how to enforce the rule on the server. Tech logSeparate inventory adjustment gains and losses in Odoo 19 and 20 (Stock Valuation Account Incoming and Outgoing are gone)Odoo 19 and 20 have one Loss Account on the Inventory adjustment location, so counts that find stock and counts that lose stock both post there and the profit and loss shows only the net. What changed from Odoo 18, the debit and credit of each case, the manual workaround, and a Gain Account next to the Loss Account. Tech logMake AI agent changes in Odoo wait for approval (ChatGPT, Claude, MCP, n8n, Odoo 20)Odoo 20 has no approval step for API calls outside purchases: JSON-2, XML-RPC and JSON-RPC run the method as soon as the key is checked, and confirming an order or posting an invoice needs no more than ordinary Sales or Billing rights. What standard Odoo offers, free ways to limit an AI agent, and how to make its changes wait for a person. Tech logRead-only Odoo API key for ChatGPT, Claude or an MCP server (Odoo 20)In Odoo 20 Community the only scope a new API key can get is RPC, and a key acts with every right of its user: on 2026-10-09 the same key that read orders also confirmed them through /json/2/sale.order/action_confirm. The free way to limit an AI agent is a dedicated user; where that stops, and why an ordinary update from an agent can remove order lines. Tech logWhen was an Odoo API key last used? Find unused keys and limit API calls (Odoo 20)An Odoo 20 API key stores its description, user, scope, creation date and expiration date, and nothing about its use. Latest Login on the user changes only for some clients, the server log does not name the key, and Odoo has no limit on calls per key. What each source shows, free ways to keep keys under control, and how to see the last call, IP address and daily calls of every key.
All English articles