Install
openclaw skills install odoo-json2-operatorClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Execute Odoo operations through JSON-2 API endpoints with bearer API keys. Use when the user asks to query or mutate Odoo data (search, read, create, write, unlink, or custom model methods), validate model/method signatures from the api_doc module, or automate step-by-step business actions against an Odoo instance.
openclaw skills install odoo-json2-operatorUse this skill to execute Odoo model methods safely via HTTP API.
references/odoo-api-doc-module.md for route map and payload conventions based on the local api_doc module.references/api-doc-static-src-learning.md for model discovery/search/method payload behavior extracted from api_doc/static/src.references/analysis-playbook.md when user asks for summary analysis, management report, trend interpretation, or decision advice.scripts/odoo_json2_client.py to perform deterministic discovery and API calls.base_url, database, api_key./doc-bearer/index.json to confirm the model exists./doc-bearer/<model>.json to confirm method name and parameter hints.search, search_read, read) to verify scope./json/2/<model>/<method>POSTX-Odoo-Database.skills/odoo-json2-operator/.tmp/.--payload-file points to a tmp_*.json file (or any JSON under --tmp-dir), the client auto-deletes it after execution.--keep-tmp-payload-file.message, and debug details when present.base_url, database, and api_key.base_url, database, and api_key only when no usable profile exists or when user wants a new/updated system.model, method, and payload draft./doc-bearer/index.json before choosing targets./doc-bearer/<model>.json and align payload keys to documented parameters.When the task is analysis/reporting, answer with this structure:
结论摘要: 1-3 lines, direct answer first.关键发现: data-backed findings with core numbers.风险与机会: what may worsen and where upside exists.决策建议: 3-5 prioritized actions with expected impact and effort.下一步: missing data to improve confidence and follow-up checks.Use plain Chinese, avoid dense jargon, and clearly separate facts vs assumptions.
Use short, clear prompts like:
[45]。"partner_id(客户)和 order_line(订单行)。你可以告诉我客户是谁、商品和数量,我来帮你组装。"base_url、database、API Key,我就可以开始执行。"python skills/odoo-json2-operator/scripts/odoo_json2_client.py \
--save-profile "odoo-prod" \
--base-url "https://odoo.example.com" \
--database "mydb" \
--api-key "$ODOO_API_KEY"
python skills/odoo-json2-operator/scripts/odoo_json2_client.py --list-profiles
python skills/odoo-json2-operator/scripts/odoo_json2_client.py \
--profile "odoo-prod" \
--discover-index
python skills/odoo-json2-operator/scripts/odoo_json2_client.py \
--profile "odoo-prod" \
--discover-model "res.partner"
python skills/odoo-json2-operator/scripts/odoo_json2_client.py \
--profile "odoo-prod" \
--model "res.partner" \
--method "search_read" \
--payload '{"domain": [["name", "ilike", "Acme"]], "fields": ["name", "email"], "limit": 20}'
python skills/odoo-json2-operator/scripts/odoo_json2_client.py \
--profile "odoo-prod" \
--tmp-dir "skills/odoo-json2-operator/.tmp" \
--model "res.partner" \
--method "search_read" \
--payload-file "skills/odoo-json2-operator/.tmp/tmp_partner_search.json"