MetorialDocs

Set up Odoo in Metorial for Claude, ChatGPT and Cursor

Share Odoo with your team in Claude, ChatGPT and Cursor through Metorial: legacy — username & password or API key sign-in, 18 tools (8 read-only).

To give your team Odoo in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Odoo integration in a Metorial portal, and each person connects with a legacy — username & password. Agents can connect to Odoo business data and workflows across installed modules. The integration has 18 tools, 8 read-only and 10 destructive, plus 2 triggers.

What you'll learn

  • How an admin shares Odoo in a portal and how each person connects
  • What Odoo asks for when you connect, and where to find it
  • How to keep the 8 read-only tools and reject the other 10

Before you start

Sign-in methods

MethodTypeWhat a person provides
Legacy — Username & Password (default)Custom credentialsusername, password, instanceUrl and database
API KeyCustom credentialsusername, token, instanceUrl and database

The portal and metorial setup use Legacy — Username & Password unless someone picks another method.

Legacy — Username & Password

To connect, a person enters these values:

  • username: Login email for the Odoo user
  • password: Password for the Odoo user
  • instanceUrl: The URL of the Odoo instance (e.g., https://mycompany.odoo.com)
  • database: The Odoo database name

API Key

To connect, a person enters these values:

  • username: Login email for the Odoo user
  • token: API Key generated from user profile settings (Odoo v14+). Used in place of password.
  • instanceUrl: The URL of the Odoo instance (e.g., https://mycompany.odoo.com)
  • database: The Odoo database name

Setup settings

Whichever method you pick, setup also asks for:

  • instanceUrl: The URL of the Odoo instance (e.g., https://mycompany.odoo.com)
  • database: The name of the Odoo database to connect to

Admin: share Odoo in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Odoo. Under Auth Method, keep Legacy — Username & Password or pick another. For how members connect, choose Each person connects so everyone enters their own legacy — username & password, or Shared connection to enter one legacy — username & password for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Odoo.

Choose who gets it

Add the access groups that should see Odoo. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Odoo integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search odoo

Employee: connect Odoo

In the portal

Open Odoo in the catalog

Sign in to your portal and open Odoo. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your legacy — username & password (username, password, instanceUrl and database).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search odoo
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses Legacy — Username & Password. To connect with API Key instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Odoo connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list odoo
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 8 read-only tools, such as list_models and read_records, and lose the 10 destructive tools, such as post_invoice or create_record.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list odoo
metorial tools <integration-id>
metorial call <integration-id> list_models -d '{}'

metorial tools lists the 18 tools, minus any you rejected. list_models takes no input. It lists Odoo model definitions visible to the connected user.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (8)

  • list_models: List Odoo model definitions visible to the connected user.
  • list_model_fields: Retrieve field definitions for any Odoo model. Needs model.
  • read_records: Read up to 100 records by ID from any Odoo model. Needs model and recordIds.
  • search_records: Search and retrieve records from any Odoo model using domain filters. Needs model.
  • count_records: Count records in any Odoo model that match a domain filter, without retrieving record data.
  • download_attachment: Download the binary content of one Odoo attachment by ID.
  • get_current_user: Retrieve the authenticated Odoo user, including identity, locale, default company, and accessible company IDs.
  • get_record_defaults: Inspect the default values Odoo would use for selected fields when creating a record.

Destructive tools (10)

  • execute_method: Expert fallback for calling a public method on any Odoo model. Needs model, method and recordIds.
  • create_record: Create one record in any Odoo model and return its positive record ID. Needs model and values.
  • delete_records: Permanently delete up to 100 records by ID from any Odoo model. Needs model and recordIds.
  • update_records: Update the same fields on up to 100 existing records in any Odoo model. Needs model, recordIds and values.
  • post_invoice: Post one draft Odoo customer invoice, customer credit note, vendor bill, or vendor credit note and return its verified accounting and payment state, partner, date, amounts, and currency.
  • confirm_purchase_order: Confirm one Odoo request for quotation as a purchase order, or submit it for required approval, and return the verified resulting state and order details.
  • confirm_sale_order: Confirm one Odoo sales quotation as a sales order and return its verified current state, confirmation date, customer, total, and currency.
  • mark_opportunity_won: Mark one Odoo CRM opportunity as won and return its verified probability, won-stage status, ownership, customer, expected revenue, and closed date.
  • complete_activity: Complete one active Odoo activity, optionally record feedback and attach existing Odoo files, and return verified completion, ownership, related-record, feedback, attachment, and message metadata.
  • archive_records: Archive or restore up to 100 records on an Odoo model with an active boolean field.

Triggers

Odoo has 2 triggers, which fire on events in Odoo:

  • record_changes: Polls for new or recently modified records in a specified Odoo model.
  • inbound_webhook

Next steps