{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openclaw-odoo",
    "name": "OpenClaw Odoo",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/tuanle96/openclaw-odoo",
    "canonicalUrl": "https://clawhub.ai/tuanle96/openclaw-odoo",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/openclaw-odoo",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-odoo",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openclaw-odoo"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/openclaw-odoo",
    "agentPageUrl": "https://openagent3.xyz/skills/openclaw-odoo/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-odoo/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-odoo/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Odoo ERP Connector",
        "body": "Full-featured Odoo 17/18/19 ERP integration for OpenClaw. Control your entire business via natural language chat commands.\n\n📦 Full Source Code: https://github.com/tuanle96/openclaw-odoo"
      },
      {
        "title": "Quick Install",
        "body": "npx clawhub install openclaw-odoo"
      },
      {
        "title": "Overview",
        "body": "The Odoo ERP Connector bridges OpenClaw and Odoo 17/18/19, enabling autonomous, chat-driven control over 153+ business modules including:\n\nSales & CRM\nPurchasing & Inventory\nInvoicing & Accounting\nProjects & Task Management\nHuman Resources\nFleet Management\nManufacturing (MRP)\nCalendar & Events\neCommerce\n\nAll operations use smart actions that handle fuzzy matching and auto-creation workflows."
      },
      {
        "title": "Sales & CRM",
        "body": "Create quotations with dynamic line items\nManage sales orders (draft → confirmed → done)\nSearch and filter orders by status, customer, date range\nCreate and qualify leads and opportunities\nMove leads through CRM pipeline stages\nView full sales pipeline with revenue forecasting"
      },
      {
        "title": "Purchasing",
        "body": "Create purchase orders from vendors\nManage PO status (draft → purchase → received)\nReceive and validate goods\nSearch and filter POs by vendor, status, date\nTrack purchase history and vendor performance"
      },
      {
        "title": "Inventory & Products",
        "body": "Create products (consumables, stockable, services)\nQuery stock levels and availability\nSet reorder points and receive low-stock alerts\nSearch products by name, code, or category\nTrack stock movements and valuations"
      },
      {
        "title": "Invoicing & Accounting",
        "body": "Create and post customer invoices\nManage payment terms and schedules\nQuery unpaid and overdue invoices\nSearch by customer, date range, or amount\nTrack invoice status (draft → posted → paid)"
      },
      {
        "title": "Projects & Tasks",
        "body": "Create projects and organize by team/status\nCreate tasks with priority, dates, and assignments\nLog timesheets and track project hours\nSearch and filter tasks by project, status, assignee\nManage project stages and closure"
      },
      {
        "title": "Human Resources",
        "body": "Create employees and departments\nManage job titles and work schedules\nProcess expense reports and reimbursements\nSearch employees by name, department, job\nTrack leave requests and attendance"
      },
      {
        "title": "Fleet Management",
        "body": "Create and track vehicles\nLog odometer readings and service records\nTrack maintenance schedules and costs\nSearch fleet by license plate, status, brand\nGenerate fleet reports"
      },
      {
        "title": "Manufacturing (MRP)",
        "body": "Create Bills of Materials (BOMs)\nManage manufacturing orders (MOs)\nTrack component requirements and production status\nSearch MOs by product or status\nLink BOMs to product variants"
      },
      {
        "title": "Calendar & Events",
        "body": "Create meetings and events with attendees\nSet reminders and locations\nSearch events by date range or attendee\nTrack calendar availability"
      },
      {
        "title": "eCommerce",
        "body": "Publish products to website\nView website orders and customer activity\nManage product visibility and pricing"
      },
      {
        "title": "Sales",
        "body": "\"Create a quotation for Acme Corp with 10 Widgets at $50 each\"\n\"Confirm sales order SO00042\"\n\"Show me all draft quotations from the past week\"\n\"What's the total revenue from completed orders this month?\"\n\"Create a quote for Rocky with product Rock\""
      },
      {
        "title": "CRM",
        "body": "\"Create a lead for Rocky, email rocky@example.com, potential $50k deal\"\n\"Move lead #47 to Qualified stage\"\n\"Show me the sales pipeline with all open opportunities\"\n\"What leads are at proposal stage?\"\n\"Create an opportunity for Acme with $100k expected value\""
      },
      {
        "title": "Purchasing",
        "body": "\"Create a PO for 500 widgets from Supplier ABC\"\n\"Confirm purchase order PO00123\"\n\"Show all pending purchase orders\"\n\"Get me the vendor history for ABC Supplies\"\n\"What's on order that's overdue?\""
      },
      {
        "title": "Inventory & Products",
        "body": "\"Create a new product: TestWidget, $25 price, min stock 10\"\n\"Show products with stock below 20 units\"\n\"What's the stock level for Widget X?\"\n\"Search for all consumable products\"\n\"Set reorder point for Product Y to 50 units\""
      },
      {
        "title": "Invoicing",
        "body": "\"Create an invoice for Acme Corp with 5 units at $50 each\"\n\"Show me unpaid invoices\"\n\"What invoices are overdue?\"\n\"Post invoice INV-001\"\n\"Send a reminder for invoice INV-002\""
      },
      {
        "title": "Projects & Tasks",
        "body": "\"Create a project called Website Redesign\"\n\"Create a task 'Fix login button' in Website Redesign project\"\n\"Show me all tasks assigned to me\"\n\"Log 3 hours of work on task #42\"\n\"What's the status of the Website Redesign project?\""
      },
      {
        "title": "HR",
        "body": "\"Create employee John Smith, job title Developer\"\n\"Create department Engineering\"\n\"Show me all employees in Engineering\"\n\"Submit expense report for $45.99\"\n\"What are the pending leave requests?\""
      },
      {
        "title": "Fleet",
        "body": "\"Create vehicle: Tesla Model 3, license plate TESLA-001\"\n\"Log odometer reading: 50,000 miles for vehicle #1\"\n\"Show all vehicles with service due\"\n\"What's the maintenance cost for this month?\"\n\"Search for blue vehicles\""
      },
      {
        "title": "Manufacturing",
        "body": "\"Create BOM: Widget contains 3 Components A and 2 Components B\"\n\"Create manufacturing order: produce 50 Widgets\"\n\"Confirm production order #1\"\n\"What's the status of MO-001?\"\n\"Show all in-progress manufacturing orders\""
      },
      {
        "title": "Calendar",
        "body": "\"Create meeting: Team Standup, tomorrow at 10am, 1 hour\"\n\"Show me my meetings for next week\"\n\"What events do I have on the 15th?\"\n\"Schedule a 2-hour planning session with the team\""
      },
      {
        "title": "eCommerce",
        "body": "\"Publish Widget X to the website\"\n\"Show me website orders from this week\"\n\"What's my website revenue?\""
      },
      {
        "title": "Smart Actions",
        "body": "The connector handles fuzzy/incomplete requests with intelligent find-or-create logic."
      },
      {
        "title": "How Smart Actions Work",
        "body": "Example: \"Create quotation for Rocky with product Rock\"\n\nThe system:\n\nSearches for a customer named \"Rocky\" (case-insensitive, ilike matching)\nIf not found: Creates a new customer \"Rocky\" (auto-company flag)\nSearches for product \"Rock\"\nIf not found: Creates a basic product \"Rock\" (consumable type, default price $0)\nCreates the quotation, linking both the found/created customer and product\nReports what was found vs. created:\n\n\"Created quotation QT-001 for new customer Rocky with 1 × Rock at $0.00\"\n\nThis pattern applies across all smart actions:\n\ncreate_quotation — customer + products\ncreate_invoice — customer + products\ncreate_purchase — vendor + products\ncreate_lead — partner (optional)\ncreate_task — project + task\ncreate_employee — department\ncreate_event — event only (no dependencies)"
      },
      {
        "title": "Benefits",
        "body": "Fuzzy matching: Searches are case-insensitive and forgiving\nAuto-creation: Missing dependencies are created automatically\nTransparency: Each response explains what was created vs. found\nNo IDs needed: Use names instead of Odoo IDs\nBatch operations: Create multiple related records in one call"
      },
      {
        "title": "Core Components",
        "body": "OdooClient — Low-level XML-RPC wrapper\n\nConnects to Odoo 17/18/19 instance\nHandles authentication via API key\nProvides search(), searchRead(), create(), write(), unlink() methods\nBuilt-in retry logic and error handling\n\nModel Ops Classes — Business logic for each module\n\nPartnerOps — Customers/suppliers\nSaleOrderOps — Quotations and sales orders\nInvoiceOps — Customer invoices\nInventoryOps — Products and stock\nCRMOps — Leads and opportunities\nPurchaseOrderOps — POs and vendors\nProjectOps — Projects and tasks\nHROps — Employees, departments, expenses\nManufacturingOps — BOMs and MOs\nCalendarOps — Events and meetings\nFleetOps — Vehicles and odometer\nEcommerceOps — Website orders and products\n\nSmartActionHandler — High-level find-or-create workflows\n\nWraps all Ops classes\nImplements find-or-create workflows\nFuzzy name matching (case-insensitive)\nMulti-step transaction orchestration\nDetailed response summaries"
      },
      {
        "title": "Field Handling",
        "body": "The connector auto-detects required vs. optional fields:\n\nImplicit defaults: Fields with Odoo defaults (e.g., state) are omitted\nSmart creation: Auto-fills reasonable defaults for optional fields\nError reporting: Missing required fields raise clear OdooError with field name"
      },
      {
        "title": "Plugin Config (openclaw.plugin.json)",
        "body": "{\n  \"url\": \"http://localhost:8069\",\n  \"db\": \"your_database\",\n  \"username\": \"api_user@yourcompany.com\",\n  \"apiKey\": \"your_api_key_from_odoo_preferences\",\n  \"timeout\": 60,\n  \"maxRetries\": 3,\n  \"pollInterval\": 60,\n  \"logLevel\": \"INFO\",\n  \"webhookPort\": 8070,\n  \"webhookSecret\": \"\"\n}\n\nConfig keys are camelCase only."
      },
      {
        "title": "Getting Your API Key",
        "body": "Log in to your Odoo instance\nGo to Settings → Users & Companies → Users\nOpen your user record\nScroll to Access Tokens\nClick Generate Token\nCopy the token into your config"
      },
      {
        "title": "Environment Variables",
        "body": "Alternatively, set in .env:\n\nODOO_URL=http://localhost:8069\nODOO_DB=your_database\nODOO_USERNAME=api_user@yourcompany.com\nODOO_API_KEY=your_api_key\n\nThe client auto-loads from .env if plugin config is missing."
      },
      {
        "title": "Basic Usage",
        "body": "import { OdooSession } from \"./odoo/session\";\nimport { loadOdooConfig } from \"./odoo/config\";\nimport { SmartActionHandler } from \"./odoo/smart-actions\";\n\n// Load config from plugin config or env\nconst { config } = loadOdooConfig({ url: \"...\", db: \"...\", username: \"...\", apiKey: \"...\" });\nconst session = await OdooSession.connect(config);\n\n// Test connection\nconst status = await session.testConnection();\nconsole.log(`Connected to Odoo ${status.server_version}`);\n\n// Use smart actions for natural workflows\nconst smart = new SmartActionHandler(session);\n\n// Create a quotation with fuzzy partner and product matching\nconst result = await smart.smartCreateQuotation(\n  \"Rocky\",\n  [{ name: \"Rock\", quantity: 5, price_unit: 19.99 }],\n  { notes: \"Fuzzy match quotation\" }\n);\nconsole.log(result.summary);\n// Output: \"Created quotation QT-001 for new customer Rocky with 1 × Rock at $19.99\""
      },
      {
        "title": "Smart Actions API",
        "body": "// Find-or-create a customer\nconst partnerResult = await smart.findOrCreatePartner(\"Acme Corp\", {\n  isCompany: true,\n  defaults: { city: \"New York\" }\n});\nconst partner = partnerResult.partner;\nconst created = partnerResult.created;\n\n// Find-or-create a product\nconst productResult = await smart.findOrCreateProduct(\"Widget X\", {\n  list_price: 49.99,\n  type: \"consu\"\n});\nconst product = productResult.product;\n\n// Smart quotation (auto-creates customer & products)\nconst orderResult = await smart.smartCreateQuotation(\n  \"Rocky\",\n  [\n    { name: \"Product A\", quantity: 10 },\n    { name: \"Product B\", quantity: 5, price_unit: 25.0 }\n  ],\n  { notes: \"Created via smart action\" }\n);\nconst order = orderResult.order;\nconsole.log(`Order ${order.name} created`);\n\n// Smart lead creation\nconst leadResult = await smart.smartCreateLead(\"New Prospect\", {\n  contactName: \"John Doe\",\n  email: \"john@prospect.com\",\n  expectedRevenue: 50000.0\n});\n\n// Smart task creation (auto-creates project if needed)\nconst taskResult = await smart.smartCreateTask(\n  \"Website Redesign\",\n  \"Fix homepage\",\n  { description: \"Update hero section\" }\n);\n\n// Smart employee creation (auto-creates department if needed)\nconst empResult = await smart.smartCreateEmployee(\"Jane Smith\", {\n  jobTitle: \"Developer\",\n  departmentName: \"Engineering\"\n});\n\n// Smart event creation\nconst eventResult = await smart.smartCreateEvent(\n  \"Team Standup\",\n  \"2026-03-01T10:00:00\",\n  { location: \"Room A\", attendeeNames: [\"Alice\", \"Bob\"] }\n);"
      },
      {
        "title": "Low-Level Client API",
        "body": "// Search and read records\nconst partners = await client.searchRead(\n  \"res.partner\",\n  [[\"is_company\", \"=\", true]],\n  [\"name\", \"email\"],\n  { limit: 10 }\n);\n\n// Create a record\nconst id = await client.create(\"sale.order\", {\n  partner_id: 42,\n  order_line: [[0, 0, { product_id: 7, product_uom_qty: 10, price_unit: 49.99 }]]\n});\n\n// Update a record\nawait client.write(\"sale.order\", id, { note: \"Updated via API\" });\n\n// Delete a record\nawait client.unlink(\"sale.order\", [id]);\n\n// Execute workflow actions\nawait client.execute(\"sale.order\", \"action_confirm\", [[id]]);\n\n// Get field definitions\nconst fields = await client.fieldsGet(\"product.template\");"
      },
      {
        "title": "Error Handling",
        "body": "The connector uses typed error classes:\n\nimport {\n  OdooError,\n  OdooAuthenticationError,\n  OdooRecordNotFoundError,\n  OdooAccessError,\n  OdooValidationError,\n  OdooConnectionError\n} from \"./odoo/errors\";\n\ntry {\n  const result = await smart.smartCreateQuotation(\"Acme\", [{ name: \"Widget\" }]);\n} catch (e) {\n  if (e instanceof OdooAuthenticationError) {\n    console.error(`Authentication failed: ${e.message}`);\n  } else if (e instanceof OdooRecordNotFoundError) {\n    console.error(`Record not found: ${e.message}`);\n  } else if (e instanceof OdooAccessError) {\n    console.error(`Permission denied: ${e.message}`);\n  } else if (e instanceof OdooValidationError) {\n    console.error(`Validation error: ${e.message}`);\n  } else if (e instanceof OdooConnectionError) {\n    console.error(`Connection error: ${e.message}`);\n  } else if (e instanceof OdooError) {\n    console.error(`Odoo error: ${e.message}`);\n  }\n}"
      },
      {
        "title": "OpenClaw Tools",
        "body": "The plugin registers 8 tools accessible via natural language:\n\nToolDescriptionodoo_healthConfig sanity check (no network)odoo_test_connectionLive XML-RPC connectivity checkodoo_searchSearch & read records with domain filtersodoo_createCreate records on any modelodoo_updateUpdate existing recordsodoo_deleteDelete recordsodoo_workflowExecute model methods (confirm/cancel/post)odoo_smart_actionHigh-level find-or-create workflows"
      },
      {
        "title": "Natural Language Sales Order",
        "body": "User: \"Create a quote for Acme Corp with 10 Widgets at $50 each\"\n\nOpenClaw → odoo_smart_action (create_quotation):\n  1. Search for customer \"Acme Corp\"\n  2. Search for product \"Widgets\"\n  3. Create quotation with both\n  4. Return summary\n\nResult: \"✅ Created quotation QT-001 for Acme Corp with 10 × Widgets at $50\""
      },
      {
        "title": "Pipeline Status Check",
        "body": "User: \"Show me the sales pipeline\"\n\nOpenClaw → odoo_search (crm.lead):\n  - Query all leads/opportunities\n  - Group by stage\n  - Calculate total revenue by stage\n  - Return formatted summary\n\nResult: \"Qualified: $50k | Proposal: $100k | Negotiation: $75k | Total: $225k\""
      },
      {
        "title": "Inventory Alert",
        "body": "User: \"What products are low on stock?\"\n\nOpenClaw → odoo_search (product.template):\n  - Query products with stock < reorder point\n  - List each product, stock level, reorder point\n  - Suggest PO quantities\n\nResult: \"Widget X: 5 on hand (min 20) | Component Y: 0 on hand (min 10)\""
      },
      {
        "title": "Project Structure",
        "body": "openclaw-odoo/\n├── plugin/\n│   ├── openclaw.plugin.json    # Plugin manifest + config schema\n│   ├── package.json            # @openclaw/openclaw-odoo@2.0.0\n│   ├── tsconfig.json\n│   ├── src/\n│   │   ├── index.ts            # Entry point (registers 8 tools)\n│   │   ├── odoo/               # Core: client, config, errors, retry\n│   │   │   ├── client.ts       # OdooClient (XML-RPC wrapper)\n│   │   │   ├── config.ts       # Configuration loader\n│   │   │   ├── errors.ts       # Typed error classes\n│   │   │   ├── retry.ts        # Retry logic\n│   │   │   ├── smart-actions.ts # SmartActionHandler\n│   │   │   └── models/         # 12 model operation classes\n│   │   ├── tools/              # 8 OpenClaw tools\n│   │   ├── services/           # Poller + webhook\n│   │   ├── openclaw/           # OpenClaw API helpers + integration\n│   │   └── utils/              # Validators + formatting\n│   ├── tests/                  # 18 tests (Vitest)\n│   ├── skills/odoo/SKILL.md    # This file (bundled AI context)\n│   └── dist/                   # Compiled output (CommonJS)\n├── README.md                   # User setup guide\n├── CHANGELOG.md                # Version history\n├── RELEASE.md                  # Release plan\n├── GAP_ANALYSIS.md             # Multi-version compatibility audit\n└── odoo-src/                   # Odoo source for analysis"
      },
      {
        "title": "Running Tests",
        "body": "cd plugin\npnpm install\npnpm build          # TS → dist/ (CommonJS)\npnpm run typecheck  # tsc --noEmit (strict)\npnpm test           # vitest run (18 tests)"
      },
      {
        "title": "Adding a New Smart Action",
        "body": "Implement the method in SmartActionHandler class (in src/odoo/smart-actions.ts)\nUse findOrCreatePartner() / findOrCreateProduct() primitives for dependencies\nReturn an object with summary, the main record, and creation details\nAdd the action to the ActionSchema union in src/tools/odoo-smart-action.ts\nAdd a case in the switch statement to route the action\nAdd test in tests/\n\nExample:\n\nasync smartCreateInvoice(\n  customerName: string,\n  lines: Array<Record<string, unknown>>,\n  options: { invoiceDate?: string; extra?: Record<string, unknown> } = {},\n): Promise<Record<string, unknown>> {\n  // Find or create customer\n  const customerResult = await this.findOrCreatePartner(customerName);\n  const customer = customerResult.partner;\n\n  // Find or create products\n  const products = [];\n  for (const line of lines) {\n    const prodResult = await this.findOrCreateProduct(line.name as string, line);\n    products.push(prodResult);\n  }\n\n  // Create invoice with resolved IDs\n  const invoiceId = await this.client.create(\"account.move\", {\n    partner_id: customer.id,\n    move_type: \"out_invoice\",\n    invoice_date: options.invoiceDate,\n    invoice_line_ids: products.map((p, i) => [\n      0, 0, {\n        product_id: p.product.id,\n        quantity: (lines[i] as any).quantity ?? 1,\n        price_unit: (lines[i] as any).price_unit ?? 0,\n      },\n    ]),\n    ...options.extra,\n  });\n\n  return {\n    summary: `Created invoice for ${customer.name}`,\n    invoice: { id: invoiceId },\n    customer: customerResult,\n    products,\n  };\n}"
      },
      {
        "title": "Limits & Constraints",
        "body": "Search limit: 100 records by default (configurable)\nTimeout: 60 seconds per request (configurable)\nRetries: 3 automatic retries on network failure\nConcurrency: Single-threaded; queue requests if needed\nRate limiting: Follow your Odoo instance's API limits"
      },
      {
        "title": "Connection Issues",
        "body": "Verify url, db, username, apiKey in config\nCheck Odoo server is running: http://your-odoo-url/web\nEnsure API key is generated in Odoo user settings\nCheck network connectivity and firewall rules"
      },
      {
        "title": "Authentication Errors",
        "body": "Regenerate API key in Odoo\nVerify username (email format)\nCheck that the user has API access enabled\nEnsure database name matches exactly"
      },
      {
        "title": "Missing Field Errors",
        "body": "Field names must match Odoo version exactly (e.g., product_tmpl_id, not product_id)\nSome fields are read-only in Odoo (state, computed fields)\nCheck Odoo model definition: Settings → Technical → Database Structure → Models"
      },
      {
        "title": "Smart Action Issues",
        "body": "Fuzzy matching is case-insensitive but searches only the name field\nFor exact matching, use odoo_search tool with id directly\nIf a name exists in multiple records, the first match is used"
      },
      {
        "title": "Performance",
        "body": "Large searches (limit > 100) may timeout\nUse date range filters: date_from, date_to\nConsider batch operations for bulk data"
      },
      {
        "title": "License & Support",
        "body": "This connector is part of the OpenClaw project. For issues, questions, or contributions, visit github.com/tuanle96/openclaw-odoo.\n\nLast Updated: 2026-02-23\nOdoo Versions: 17, 18, 19\nRuntime: Node.js (TypeScript)\nStatus: Production Ready"
      }
    ],
    "body": "Odoo ERP Connector\n\nFull-featured Odoo 17/18/19 ERP integration for OpenClaw. Control your entire business via natural language chat commands.\n\n📦 Full Source Code: https://github.com/tuanle96/openclaw-odoo\n\nQuick Install\nnpx clawhub install openclaw-odoo\n\nOverview\n\nThe Odoo ERP Connector bridges OpenClaw and Odoo 17/18/19, enabling autonomous, chat-driven control over 153+ business modules including:\n\nSales & CRM\nPurchasing & Inventory\nInvoicing & Accounting\nProjects & Task Management\nHuman Resources\nFleet Management\nManufacturing (MRP)\nCalendar & Events\neCommerce\n\nAll operations use smart actions that handle fuzzy matching and auto-creation workflows.\n\nCapabilities\nSales & CRM\nCreate quotations with dynamic line items\nManage sales orders (draft → confirmed → done)\nSearch and filter orders by status, customer, date range\nCreate and qualify leads and opportunities\nMove leads through CRM pipeline stages\nView full sales pipeline with revenue forecasting\nPurchasing\nCreate purchase orders from vendors\nManage PO status (draft → purchase → received)\nReceive and validate goods\nSearch and filter POs by vendor, status, date\nTrack purchase history and vendor performance\nInventory & Products\nCreate products (consumables, stockable, services)\nQuery stock levels and availability\nSet reorder points and receive low-stock alerts\nSearch products by name, code, or category\nTrack stock movements and valuations\nInvoicing & Accounting\nCreate and post customer invoices\nManage payment terms and schedules\nQuery unpaid and overdue invoices\nSearch by customer, date range, or amount\nTrack invoice status (draft → posted → paid)\nProjects & Tasks\nCreate projects and organize by team/status\nCreate tasks with priority, dates, and assignments\nLog timesheets and track project hours\nSearch and filter tasks by project, status, assignee\nManage project stages and closure\nHuman Resources\nCreate employees and departments\nManage job titles and work schedules\nProcess expense reports and reimbursements\nSearch employees by name, department, job\nTrack leave requests and attendance\nFleet Management\nCreate and track vehicles\nLog odometer readings and service records\nTrack maintenance schedules and costs\nSearch fleet by license plate, status, brand\nGenerate fleet reports\nManufacturing (MRP)\nCreate Bills of Materials (BOMs)\nManage manufacturing orders (MOs)\nTrack component requirements and production status\nSearch MOs by product or status\nLink BOMs to product variants\nCalendar & Events\nCreate meetings and events with attendees\nSet reminders and locations\nSearch events by date range or attendee\nTrack calendar availability\neCommerce\nPublish products to website\nView website orders and customer activity\nManage product visibility and pricing\nCommand Examples\nSales\n\"Create a quotation for Acme Corp with 10 Widgets at $50 each\"\n\"Confirm sales order SO00042\"\n\"Show me all draft quotations from the past week\"\n\"What's the total revenue from completed orders this month?\"\n\"Create a quote for Rocky with product Rock\"\nCRM\n\"Create a lead for Rocky, email rocky@example.com, potential $50k deal\"\n\"Move lead #47 to Qualified stage\"\n\"Show me the sales pipeline with all open opportunities\"\n\"What leads are at proposal stage?\"\n\"Create an opportunity for Acme with $100k expected value\"\nPurchasing\n\"Create a PO for 500 widgets from Supplier ABC\"\n\"Confirm purchase order PO00123\"\n\"Show all pending purchase orders\"\n\"Get me the vendor history for ABC Supplies\"\n\"What's on order that's overdue?\"\nInventory & Products\n\"Create a new product: TestWidget, $25 price, min stock 10\"\n\"Show products with stock below 20 units\"\n\"What's the stock level for Widget X?\"\n\"Search for all consumable products\"\n\"Set reorder point for Product Y to 50 units\"\nInvoicing\n\"Create an invoice for Acme Corp with 5 units at $50 each\"\n\"Show me unpaid invoices\"\n\"What invoices are overdue?\"\n\"Post invoice INV-001\"\n\"Send a reminder for invoice INV-002\"\nProjects & Tasks\n\"Create a project called Website Redesign\"\n\"Create a task 'Fix login button' in Website Redesign project\"\n\"Show me all tasks assigned to me\"\n\"Log 3 hours of work on task #42\"\n\"What's the status of the Website Redesign project?\"\nHR\n\"Create employee John Smith, job title Developer\"\n\"Create department Engineering\"\n\"Show me all employees in Engineering\"\n\"Submit expense report for $45.99\"\n\"What are the pending leave requests?\"\nFleet\n\"Create vehicle: Tesla Model 3, license plate TESLA-001\"\n\"Log odometer reading: 50,000 miles for vehicle #1\"\n\"Show all vehicles with service due\"\n\"What's the maintenance cost for this month?\"\n\"Search for blue vehicles\"\nManufacturing\n\"Create BOM: Widget contains 3 Components A and 2 Components B\"\n\"Create manufacturing order: produce 50 Widgets\"\n\"Confirm production order #1\"\n\"What's the status of MO-001?\"\n\"Show all in-progress manufacturing orders\"\nCalendar\n\"Create meeting: Team Standup, tomorrow at 10am, 1 hour\"\n\"Show me my meetings for next week\"\n\"What events do I have on the 15th?\"\n\"Schedule a 2-hour planning session with the team\"\neCommerce\n\"Publish Widget X to the website\"\n\"Show me website orders from this week\"\n\"What's my website revenue?\"\nSmart Actions\n\nThe connector handles fuzzy/incomplete requests with intelligent find-or-create logic.\n\nHow Smart Actions Work\n\nExample: \"Create quotation for Rocky with product Rock\"\n\nThe system:\n\nSearches for a customer named \"Rocky\" (case-insensitive, ilike matching)\nIf not found: Creates a new customer \"Rocky\" (auto-company flag)\nSearches for product \"Rock\"\nIf not found: Creates a basic product \"Rock\" (consumable type, default price $0)\nCreates the quotation, linking both the found/created customer and product\nReports what was found vs. created:\n\"Created quotation QT-001 for new customer Rocky with 1 × Rock at $0.00\"\n\nThis pattern applies across all smart actions:\n\ncreate_quotation — customer + products\ncreate_invoice — customer + products\ncreate_purchase — vendor + products\ncreate_lead — partner (optional)\ncreate_task — project + task\ncreate_employee — department\ncreate_event — event only (no dependencies)\nBenefits\nFuzzy matching: Searches are case-insensitive and forgiving\nAuto-creation: Missing dependencies are created automatically\nTransparency: Each response explains what was created vs. found\nNo IDs needed: Use names instead of Odoo IDs\nBatch operations: Create multiple related records in one call\nArchitecture\nCore Components\n\nOdooClient — Low-level XML-RPC wrapper\n\nConnects to Odoo 17/18/19 instance\nHandles authentication via API key\nProvides search(), searchRead(), create(), write(), unlink() methods\nBuilt-in retry logic and error handling\n\nModel Ops Classes — Business logic for each module\n\nPartnerOps — Customers/suppliers\nSaleOrderOps — Quotations and sales orders\nInvoiceOps — Customer invoices\nInventoryOps — Products and stock\nCRMOps — Leads and opportunities\nPurchaseOrderOps — POs and vendors\nProjectOps — Projects and tasks\nHROps — Employees, departments, expenses\nManufacturingOps — BOMs and MOs\nCalendarOps — Events and meetings\nFleetOps — Vehicles and odometer\nEcommerceOps — Website orders and products\n\nSmartActionHandler — High-level find-or-create workflows\n\nWraps all Ops classes\nImplements find-or-create workflows\nFuzzy name matching (case-insensitive)\nMulti-step transaction orchestration\nDetailed response summaries\nField Handling\n\nThe connector auto-detects required vs. optional fields:\n\nImplicit defaults: Fields with Odoo defaults (e.g., state) are omitted\nSmart creation: Auto-fills reasonable defaults for optional fields\nError reporting: Missing required fields raise clear OdooError with field name\nConfiguration\nPlugin Config (openclaw.plugin.json)\n{\n  \"url\": \"http://localhost:8069\",\n  \"db\": \"your_database\",\n  \"username\": \"api_user@yourcompany.com\",\n  \"apiKey\": \"your_api_key_from_odoo_preferences\",\n  \"timeout\": 60,\n  \"maxRetries\": 3,\n  \"pollInterval\": 60,\n  \"logLevel\": \"INFO\",\n  \"webhookPort\": 8070,\n  \"webhookSecret\": \"\"\n}\n\n\nConfig keys are camelCase only.\n\nGetting Your API Key\nLog in to your Odoo instance\nGo to Settings → Users & Companies → Users\nOpen your user record\nScroll to Access Tokens\nClick Generate Token\nCopy the token into your config\nEnvironment Variables\n\nAlternatively, set in .env:\n\nODOO_URL=http://localhost:8069\nODOO_DB=your_database\nODOO_USERNAME=api_user@yourcompany.com\nODOO_API_KEY=your_api_key\n\n\nThe client auto-loads from .env if plugin config is missing.\n\nTypeScript API\nBasic Usage\nimport { OdooSession } from \"./odoo/session\";\nimport { loadOdooConfig } from \"./odoo/config\";\nimport { SmartActionHandler } from \"./odoo/smart-actions\";\n\n// Load config from plugin config or env\nconst { config } = loadOdooConfig({ url: \"...\", db: \"...\", username: \"...\", apiKey: \"...\" });\nconst session = await OdooSession.connect(config);\n\n// Test connection\nconst status = await session.testConnection();\nconsole.log(`Connected to Odoo ${status.server_version}`);\n\n// Use smart actions for natural workflows\nconst smart = new SmartActionHandler(session);\n\n// Create a quotation with fuzzy partner and product matching\nconst result = await smart.smartCreateQuotation(\n  \"Rocky\",\n  [{ name: \"Rock\", quantity: 5, price_unit: 19.99 }],\n  { notes: \"Fuzzy match quotation\" }\n);\nconsole.log(result.summary);\n// Output: \"Created quotation QT-001 for new customer Rocky with 1 × Rock at $19.99\"\n\nSmart Actions API\n// Find-or-create a customer\nconst partnerResult = await smart.findOrCreatePartner(\"Acme Corp\", {\n  isCompany: true,\n  defaults: { city: \"New York\" }\n});\nconst partner = partnerResult.partner;\nconst created = partnerResult.created;\n\n// Find-or-create a product\nconst productResult = await smart.findOrCreateProduct(\"Widget X\", {\n  list_price: 49.99,\n  type: \"consu\"\n});\nconst product = productResult.product;\n\n// Smart quotation (auto-creates customer & products)\nconst orderResult = await smart.smartCreateQuotation(\n  \"Rocky\",\n  [\n    { name: \"Product A\", quantity: 10 },\n    { name: \"Product B\", quantity: 5, price_unit: 25.0 }\n  ],\n  { notes: \"Created via smart action\" }\n);\nconst order = orderResult.order;\nconsole.log(`Order ${order.name} created`);\n\n// Smart lead creation\nconst leadResult = await smart.smartCreateLead(\"New Prospect\", {\n  contactName: \"John Doe\",\n  email: \"john@prospect.com\",\n  expectedRevenue: 50000.0\n});\n\n// Smart task creation (auto-creates project if needed)\nconst taskResult = await smart.smartCreateTask(\n  \"Website Redesign\",\n  \"Fix homepage\",\n  { description: \"Update hero section\" }\n);\n\n// Smart employee creation (auto-creates department if needed)\nconst empResult = await smart.smartCreateEmployee(\"Jane Smith\", {\n  jobTitle: \"Developer\",\n  departmentName: \"Engineering\"\n});\n\n// Smart event creation\nconst eventResult = await smart.smartCreateEvent(\n  \"Team Standup\",\n  \"2026-03-01T10:00:00\",\n  { location: \"Room A\", attendeeNames: [\"Alice\", \"Bob\"] }\n);\n\nLow-Level Client API\n// Search and read records\nconst partners = await client.searchRead(\n  \"res.partner\",\n  [[\"is_company\", \"=\", true]],\n  [\"name\", \"email\"],\n  { limit: 10 }\n);\n\n// Create a record\nconst id = await client.create(\"sale.order\", {\n  partner_id: 42,\n  order_line: [[0, 0, { product_id: 7, product_uom_qty: 10, price_unit: 49.99 }]]\n});\n\n// Update a record\nawait client.write(\"sale.order\", id, { note: \"Updated via API\" });\n\n// Delete a record\nawait client.unlink(\"sale.order\", [id]);\n\n// Execute workflow actions\nawait client.execute(\"sale.order\", \"action_confirm\", [[id]]);\n\n// Get field definitions\nconst fields = await client.fieldsGet(\"product.template\");\n\nError Handling\n\nThe connector uses typed error classes:\n\nimport {\n  OdooError,\n  OdooAuthenticationError,\n  OdooRecordNotFoundError,\n  OdooAccessError,\n  OdooValidationError,\n  OdooConnectionError\n} from \"./odoo/errors\";\n\ntry {\n  const result = await smart.smartCreateQuotation(\"Acme\", [{ name: \"Widget\" }]);\n} catch (e) {\n  if (e instanceof OdooAuthenticationError) {\n    console.error(`Authentication failed: ${e.message}`);\n  } else if (e instanceof OdooRecordNotFoundError) {\n    console.error(`Record not found: ${e.message}`);\n  } else if (e instanceof OdooAccessError) {\n    console.error(`Permission denied: ${e.message}`);\n  } else if (e instanceof OdooValidationError) {\n    console.error(`Validation error: ${e.message}`);\n  } else if (e instanceof OdooConnectionError) {\n    console.error(`Connection error: ${e.message}`);\n  } else if (e instanceof OdooError) {\n    console.error(`Odoo error: ${e.message}`);\n  }\n}\n\nOpenClaw Tools\n\nThe plugin registers 8 tools accessible via natural language:\n\nTool\tDescription\nodoo_health\tConfig sanity check (no network)\nodoo_test_connection\tLive XML-RPC connectivity check\nodoo_search\tSearch & read records with domain filters\nodoo_create\tCreate records on any model\nodoo_update\tUpdate existing records\nodoo_delete\tDelete records\nodoo_workflow\tExecute model methods (confirm/cancel/post)\nodoo_smart_action\tHigh-level find-or-create workflows\nExamples in OpenClaw\nNatural Language Sales Order\nUser: \"Create a quote for Acme Corp with 10 Widgets at $50 each\"\n\nOpenClaw → odoo_smart_action (create_quotation):\n  1. Search for customer \"Acme Corp\"\n  2. Search for product \"Widgets\"\n  3. Create quotation with both\n  4. Return summary\n\nResult: \"✅ Created quotation QT-001 for Acme Corp with 10 × Widgets at $50\"\n\nPipeline Status Check\nUser: \"Show me the sales pipeline\"\n\nOpenClaw → odoo_search (crm.lead):\n  - Query all leads/opportunities\n  - Group by stage\n  - Calculate total revenue by stage\n  - Return formatted summary\n\nResult: \"Qualified: $50k | Proposal: $100k | Negotiation: $75k | Total: $225k\"\n\nInventory Alert\nUser: \"What products are low on stock?\"\n\nOpenClaw → odoo_search (product.template):\n  - Query products with stock < reorder point\n  - List each product, stock level, reorder point\n  - Suggest PO quantities\n\nResult: \"Widget X: 5 on hand (min 20) | Component Y: 0 on hand (min 10)\"\n\nDevelopment\nProject Structure\nopenclaw-odoo/\n├── plugin/\n│   ├── openclaw.plugin.json    # Plugin manifest + config schema\n│   ├── package.json            # @openclaw/openclaw-odoo@2.0.0\n│   ├── tsconfig.json\n│   ├── src/\n│   │   ├── index.ts            # Entry point (registers 8 tools)\n│   │   ├── odoo/               # Core: client, config, errors, retry\n│   │   │   ├── client.ts       # OdooClient (XML-RPC wrapper)\n│   │   │   ├── config.ts       # Configuration loader\n│   │   │   ├── errors.ts       # Typed error classes\n│   │   │   ├── retry.ts        # Retry logic\n│   │   │   ├── smart-actions.ts # SmartActionHandler\n│   │   │   └── models/         # 12 model operation classes\n│   │   ├── tools/              # 8 OpenClaw tools\n│   │   ├── services/           # Poller + webhook\n│   │   ├── openclaw/           # OpenClaw API helpers + integration\n│   │   └── utils/              # Validators + formatting\n│   ├── tests/                  # 18 tests (Vitest)\n│   ├── skills/odoo/SKILL.md    # This file (bundled AI context)\n│   └── dist/                   # Compiled output (CommonJS)\n├── README.md                   # User setup guide\n├── CHANGELOG.md                # Version history\n├── RELEASE.md                  # Release plan\n├── GAP_ANALYSIS.md             # Multi-version compatibility audit\n└── odoo-src/                   # Odoo source for analysis\n\nRunning Tests\ncd plugin\npnpm install\npnpm build          # TS → dist/ (CommonJS)\npnpm run typecheck  # tsc --noEmit (strict)\npnpm test           # vitest run (18 tests)\n\nAdding a New Smart Action\nImplement the method in SmartActionHandler class (in src/odoo/smart-actions.ts)\nUse findOrCreatePartner() / findOrCreateProduct() primitives for dependencies\nReturn an object with summary, the main record, and creation details\nAdd the action to the ActionSchema union in src/tools/odoo-smart-action.ts\nAdd a case in the switch statement to route the action\nAdd test in tests/\n\nExample:\n\nasync smartCreateInvoice(\n  customerName: string,\n  lines: Array<Record<string, unknown>>,\n  options: { invoiceDate?: string; extra?: Record<string, unknown> } = {},\n): Promise<Record<string, unknown>> {\n  // Find or create customer\n  const customerResult = await this.findOrCreatePartner(customerName);\n  const customer = customerResult.partner;\n\n  // Find or create products\n  const products = [];\n  for (const line of lines) {\n    const prodResult = await this.findOrCreateProduct(line.name as string, line);\n    products.push(prodResult);\n  }\n\n  // Create invoice with resolved IDs\n  const invoiceId = await this.client.create(\"account.move\", {\n    partner_id: customer.id,\n    move_type: \"out_invoice\",\n    invoice_date: options.invoiceDate,\n    invoice_line_ids: products.map((p, i) => [\n      0, 0, {\n        product_id: p.product.id,\n        quantity: (lines[i] as any).quantity ?? 1,\n        price_unit: (lines[i] as any).price_unit ?? 0,\n      },\n    ]),\n    ...options.extra,\n  });\n\n  return {\n    summary: `Created invoice for ${customer.name}`,\n    invoice: { id: invoiceId },\n    customer: customerResult,\n    products,\n  };\n}\n\nLimits & Constraints\nSearch limit: 100 records by default (configurable)\nTimeout: 60 seconds per request (configurable)\nRetries: 3 automatic retries on network failure\nConcurrency: Single-threaded; queue requests if needed\nRate limiting: Follow your Odoo instance's API limits\nTroubleshooting\nConnection Issues\nVerify url, db, username, apiKey in config\nCheck Odoo server is running: http://your-odoo-url/web\nEnsure API key is generated in Odoo user settings\nCheck network connectivity and firewall rules\nAuthentication Errors\nRegenerate API key in Odoo\nVerify username (email format)\nCheck that the user has API access enabled\nEnsure database name matches exactly\nMissing Field Errors\nField names must match Odoo version exactly (e.g., product_tmpl_id, not product_id)\nSome fields are read-only in Odoo (state, computed fields)\nCheck Odoo model definition: Settings → Technical → Database Structure → Models\nSmart Action Issues\nFuzzy matching is case-insensitive but searches only the name field\nFor exact matching, use odoo_search tool with id directly\nIf a name exists in multiple records, the first match is used\nPerformance\nLarge searches (limit > 100) may timeout\nUse date range filters: date_from, date_to\nConsider batch operations for bulk data\nLicense & Support\n\nThis connector is part of the OpenClaw project. For issues, questions, or contributions, visit github.com/tuanle96/openclaw-odoo.\n\nLast Updated: 2026-02-23\nOdoo Versions: 17, 18, 19\nRuntime: Node.js (TypeScript)\nStatus: Production Ready"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/tuanle96/openclaw-odoo",
    "publisherUrl": "https://clawhub.ai/tuanle96/openclaw-odoo",
    "owner": "tuanle96",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openclaw-odoo",
    "downloadUrl": "https://openagent3.xyz/downloads/openclaw-odoo",
    "agentUrl": "https://openagent3.xyz/skills/openclaw-odoo/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-odoo/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-odoo/agent.md"
  }
}