blog: added standalone Odoo prompt to speed-run post with top/bottom cross-references

This commit is contained in:
Oliver
2026-06-15 06:01:46 -03:00
parent 77eb64e8bd
commit 76f7cc0e2c
+49 -4
View File
@@ -117,6 +117,9 @@
<p>
To follow along, grab a <strong>free trial</strong> of Odoo Community at <a href="https://ODOO4projects.com?utm_source=derez&amp;utm_campaign=youtube" target="_blank" rel="noopener">ODOO4projects.com</a> and generate an API key from your profile settings. It takes about 10 Minutes and gives you everything you need for this walkthrough.
</p>
<div class="pro-tip">
<strong>Not using derez.ai?</strong> You can use the Odoo prompt directly with any Hermes agent. Find the full standalone prompt with API reference at the <a href="#odoo-reference">bottom of this page</a> — just copy, paste, and fill in your credentials.
</div>
<h2>Prerequisites</h2>
<p>Before you start, make sure you have your Odoo Community instance credentials ready:</p>
@@ -137,7 +140,7 @@
<div class="prompt-box">
<strong>Prompt 1 &mdash; ODOO Integration</strong><br /><br />
Generated by the Derez Dashboard
Generated by the Derez Dashboard. If you're running your own agent, use the <a href="#odoo-reference">standalone Odoo prompt</a> at the bottom of this page instead.
</div>
<div class="prompt-box" style="margin-top:-8px">
@@ -164,9 +167,51 @@
<p>
Use coupon code <strong>BLOG499</strong> at checkout to get your first month free — zero risk, full access.
</p>
<p>
<a href="https://derez.ai/#pricing">Deploy your own Odoo-connected agent now.</a>
</p>
<h2 id="odoo-reference">Standalone Odoo Prompt for Hermes Agent</h2>
<p>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.</p>
<div class="prompt-box" style="font-style:normal">
<strong style="color:#00f5ff">## Integrations</strong><br /><br />
<strong>### ODOO Community</strong><br />
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.<br /><br />
<strong>## Credentials</strong><br />
<code>SITE_URL=https://your-instance.odoo4projects.com/</code><br />
<code>USER=your-username</code><br />
<code>API_KEY=your-api-key</code><br />
<code>DB=your-database-name</code><br /><br />
<strong>## API call pattern</strong><br />
Every call is a POST to <code>URL/json/2/&lt;model&gt;/&lt;method&gt;</code><br />
Required headers on every request:<br />
<code>Authorization: Bearer API_KEY</code><br />
<code>X-Openerp-Database: DB</code><br />
<code>Content-Type: application/json</code><br /><br />
Body: a FLAT JSON object of the method arguments (NOT JSON-RPC — no "params" wrapper).<br />
Response: the raw return value directly (no "result" wrapper).<br /><br />
<strong>## Always request only the fields you need</strong><br />
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.<br /><br />
<code>curl -s -X POST 'URL/json/2/sale.order/search_read' \<br />
&nbsp;&nbsp;-H 'Authorization: Bearer API_KEY' \<br />
&nbsp;&nbsp;-H 'X-Openerp-Database: DB' \<br />
&nbsp;&nbsp;-H 'Content-Type: application/json' \<br />
&nbsp;&nbsp;-d '{"domain":[["state","=","sale"]],"fields":["name","partner_id","amount_total"],"limit":20}' \<br />
&nbsp;&nbsp;| jq '.[] | {order: .name, customer: .partner_id[1], total: .amount_total}'</code><br /><br />
<strong>### First-run: build your API digest</strong><br />
If ~/odoo_digest.md does NOT exist yet, run this once and write the output to the file:<br /><br />
<code>curl -s 'URL/json/2/doc' \<br />
&nbsp;&nbsp;-H 'Authorization: Bearer API_KEY' \<br />
&nbsp;&nbsp;-H 'X-Openerp-Database: DB' \<br />
&nbsp;&nbsp;| jq '[to_entries[] | {model: .key, label: .value.string}]' > /tmp/odoo_models.json</code>
</div>
<p style="font-size:0.9rem;color:#888">Replace <code>URL</code>, <code>USER</code>, <code>API_KEY</code>, and <code>DB</code> with your Odoo instance credentials. This prompt works with any Hermes agent — no dashboard required.</p>
<p style="margin-top:48px;padding-top:24px;border-top:1px solid #1a1a24;font-size:0.85rem;color:#666;">
<a href="https://derez.ai" style="color:#00f5ff">derez.ai</a> — Deploy your AI agent in 10 Minutes.