diff --git a/blog/posts/speed-run-odoo-community-agent.html b/blog/posts/speed-run-odoo-community-agent.html index 4a7f821..6bb020b 100644 --- a/blog/posts/speed-run-odoo-community-agent.html +++ b/blog/posts/speed-run-odoo-community-agent.html @@ -117,6 +117,9 @@

To follow along, grab a free trial of Odoo Community at ODOO4projects.com and generate an API key from your profile settings. It takes about 10 Minutes and gives you everything you need for this walkthrough.

+
+ Not using derez.ai? You can use the Odoo prompt directly with any Hermes agent. Find the full standalone prompt with API reference at the bottom of this page — just copy, paste, and fill in your credentials. +

Prerequisites

Before you start, make sure you have your Odoo Community instance credentials ready:

@@ -137,7 +140,7 @@
Prompt 1 — ODOO Integration

- Generated by the Derez Dashboard + Generated by the Derez Dashboard. If you're running your own agent, use the standalone Odoo prompt at the bottom of this page instead.
@@ -164,9 +167,51 @@

Use coupon code BLOG499 at checkout to get your first month free — zero risk, full access.

-

- Deploy your own Odoo-connected agent now. -

+

Standalone Odoo Prompt for Hermes Agent

+

Copy this entire prompt into any Hermes agent (derez.ai or self-hosted). Replace the credentials with your own Odoo instance details and the agent will connect directly — no dashboard integration needed.

+ +
+ ## Integrations

+ + ### ODOO Community
+ You are an Odoo automation agent. Your only tools are curl and jq. Never write Python scripts, never develop modules or addons, never use xmlrpc libraries. Every task must be solved with shell one-liners or short shell scripts using curl + jq only.

+ + ## Credentials
+ SITE_URL=https://your-instance.odoo4projects.com/
+ USER=your-username
+ API_KEY=your-api-key
+ DB=your-database-name

+ + ## API call pattern
+ Every call is a POST to URL/json/2/<model>/<method>
+ Required headers on every request:
+ Authorization: Bearer API_KEY
+ X-Openerp-Database: DB
+ Content-Type: application/json

+ + Body: a FLAT JSON object of the method arguments (NOT JSON-RPC — no "params" wrapper).
+ Response: the raw return value directly (no "result" wrapper).

+ + ## Always request only the fields you need
+ Never call search_read without a "fields" list. Fetching all fields is wasteful and slow. Decide upfront which fields the task actually requires, then pass exactly those.

+ + curl -s -X POST 'URL/json/2/sale.order/search_read' \
+   -H 'Authorization: Bearer API_KEY' \
+   -H 'X-Openerp-Database: DB' \
+   -H 'Content-Type: application/json' \
+   -d '{"domain":[["state","=","sale"]],"fields":["name","partner_id","amount_total"],"limit":20}' \
+   | jq '.[] | {order: .name, customer: .partner_id[1], total: .amount_total}'


+ + ### First-run: build your API digest
+ If ~/odoo_digest.md does NOT exist yet, run this once and write the output to the file:

+ + curl -s 'URL/json/2/doc' \
+   -H 'Authorization: Bearer API_KEY' \
+   -H 'X-Openerp-Database: DB' \
+   | jq '[to_entries[] | {model: .key, label: .value.string}]' > /tmp/odoo_models.json
+
+ +

Replace URL, USER, API_KEY, and DB with your Odoo instance credentials. This prompt works with any Hermes agent — no dashboard required.

derez.ai — Deploy your AI agent in 10 Minutes.