跳到正文
TakoAPI
返回技能列表

odoo-json2-operator

由 sncic 提供

Search & Research
—暂无评分
你的评分

简介

Execute Odoo operations through JSON-2 API endpoints with bearer API keys.

描述

该技能的功能

Executes Odoo model operations through the JSON-2 HTTP API using bearer authentication. Supports search, read, create, write, unlink, and custom model methods. Validates model names and method signatures via the api_doc module before each call.

Discovery-first validation against /doc-bearer endpoints catches invalid model or method names before execution, avoiding silent failures common with direct API calls.

何时使用

  • Search customer records by name or email in Odoo
  • Create sales orders without logging into the Odoo UI
  • Update product prices or inventory fields across records
  • Run custom model methods for specific business workflows
  • Pull period-based data from Odoo for management reporting

示例工作流

输入

User asks: Find all customers whose name contains 'Acme' and show their emails

智能体
  1. 1

    Load saved connection profile or collect base_url, database, and api_key

  2. 2

    Call /doc-bearer/index.json to confirm res.partner model is available

  3. 3

    Call /doc-bearer/res.partner.json to validate search_read method and parameters

  4. 4

    Build payload with domain [["name", "ilike", "Acme"]] and fields ["name", "email"]

  5. 5

    POST to /json/2/res.partner/search_read and return matching records

输出

List of res.partner records with name and email fields matching 'Acme'

前置要求

  • Odoo instance URL
  • Odoo database name
  • Odoo bearer API key

安装

clawhub install sncic/odoo-json2-operator

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接