安全操控企业级 ERP 全模块
简介
为Odoo ERP提供模块化操作工作流,支持CRM、库存、采购、会计等多模块安全读写,强调预览-确认-执行的安全模式。
原始描述
Operate Odoo across CRM, sales, inventory, purchasing, and accounting with module-aware planning, read-before-write checks, and safe execution.
通过你的 Agent 添加
安装目录:odoo/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Odoo Skill 是一套面向企业级 ERP 系统的模块化操作框架,设计用于在 Odoo Online、Odoo.sh 或自托管环境中安全地执行数据检查、报告生成、对账、导入、配置变更及业务流程自动化。其核心工作流遵循「识别-预览-确认-执行」的四段式安全模式:首先通过 surfaces.md 确定托管环境约束,借助 operations.md 定位业务模块与数据模型,利用 safety.md 评估写入风险,最终选择 UI、CSV 导入或 XML-RPC/JSON-RPC 等最低风险接口完成操作。
显著优点
- 模块感知架构:区分 product.template 与 product.product、lead 与 opportunity 等易混淆模型,避免因字段误配导致的数据污染。
- 分层安全策略:强制「先读后写」原则,对已过账的会计分录、已完成库存移动等终态数据提供冲销、取消或调整分录等合规修正路径,杜绝直接篡改审计轨迹。
- 环境适配能力:针对 Odoo Online(受限 API)、Odoo.sh(容器化日志)、自托管(完整数据库访问)三种托管面,动态调整可用工具与权限边界。
- 记忆化配置:通过
~/odoo/ 目录下的结构化记忆文件(instances.md、modules.md、incidents.md)沉淀企业自定义字段、模块映射及历史故障恢复方案,降低重复探索成本。
潜在局限
- 依赖用户现有凭证:Skill 本身不内置 Odoo 身份认证,需用户预先配置有效账号与权限组,否则无法突破记录规则(record rules)限制。
- 复杂定制场景需人工介入:当企业重度使用 Studio 自定义字段、工作流引擎或第三方市场模块时,自动化域(domain)构建可能需人工验证。
- 实时性受限:通过 CSV 导入或 RPC 批处理时,受 Odoo 框架事务锁机制影响,高并发场景下可能出现序列化冲突。
适合人群
- 使用 Odoo 的中小企业运营人员、财务主管及供应链经理
- 需跨模块整合数据的业务分析师与 BI 开发者
- 在 Odoo 与外部系统(电商平台、WMS、支付网关)间构建集成的技术顾问
常规风险
- 误操作不可逆:批量导入时若未配置稳定的外部 ID 或自然键,重复执行可能导致数据重复或覆盖。
- 权限逃逸:在 self-hosted 环境中,若用户直接建议数据库级 UPDATE/DELETE 而未穷尽 UI/API 路径,可能破坏 ORM 层业务逻辑与审计钩子。
- 多公司数据混淆:未显式指定 company_id 与 fiscal period 的报表查询,可能将 draft、cancelled、confirmed 状态记录混算,导致决策偏差。
- 合规性缺口:对已过账会计凭证的直接修改提议若未明确警示审计风险,可能触发内控合规问题。
~/odoo/ 目录下的结构化记忆文件(instances.md、modules.md、incidents.md)沉淀企业自定义字段、模块映射及历史故障恢复方案,降低重复探索成本。- 依赖用户现有凭证:Skill 本身不内置 Odoo 身份认证,需用户预先配置有效账号与权限组,否则无法突破记录规则(record rules)限制。
- 复杂定制场景需人工介入:当企业重度使用 Studio 自定义字段、工作流引擎或第三方市场模块时,自动化域(domain)构建可能需人工验证。
- 实时性受限:通过 CSV 导入或 RPC 批处理时,受 Odoo 框架事务锁机制影响,高并发场景下可能出现序列化冲突。
适合人群
- 使用 Odoo 的中小企业运营人员、财务主管及供应链经理
- 需跨模块整合数据的业务分析师与 BI 开发者
- 在 Odoo 与外部系统(电商平台、WMS、支付网关)间构建集成的技术顾问
常规风险
- 误操作不可逆:批量导入时若未配置稳定的外部 ID 或自然键,重复执行可能导致数据重复或覆盖。
- 权限逃逸:在 self-hosted 环境中,若用户直接建议数据库级 UPDATE/DELETE 而未穷尽 UI/API 路径,可能破坏 ORM 层业务逻辑与审计钩子。
- 多公司数据混淆:未显式指定 company_id 与 fiscal period 的报表查询,可能将 draft、cancelled、confirmed 状态记录混算,导致决策偏差。
- 合规性缺口:对已过账会计凭证的直接修改提议若未明确警示审计风险,可能触发内控合规问题。
- 误操作不可逆:批量导入时若未配置稳定的外部 ID 或自然键,重复执行可能导致数据重复或覆盖。
- 权限逃逸:在 self-hosted 环境中,若用户直接建议数据库级 UPDATE/DELETE 而未穷尽 UI/API 路径,可能破坏 ORM 层业务逻辑与审计钩子。
- 多公司数据混淆:未显式指定 company_id 与 fiscal period 的报表查询,可能将 draft、cancelled、confirmed 状态记录混算,导致决策偏差。
- 合规性缺口:对已过账会计凭证的直接修改提议若未明确警示审计风险,可能触发内控合规问题。
技能正文
name: Odoo
slug: odoo
version: 1.0.0
homepage: https://clawic.com/skills/odoo
description: "Operate Odoo across CRM, sales, inventory, purchasing, and accounting with module-aware planning, read-before-write checks, and safe execution."
changelog: "Turns generic Odoo help into a module-aware workflow for safer reporting, imports, integrations, and business operations."
metadata: {"clawdbot":{"emoji":"🏢","requires":{"bins":[]},"os":["linux","darwin","win32"],"configPaths":["~/odoo/"]}}
Odoo
Odoo operating workflow for live ERP systems. Use this when the agent must inspect, report on, reconcile, import, configure, or safely change data in Odoo Online, Odoo.sh, or self-hosted environments.
When to Use
Use when the task clearly belongs to Odoo: CRM, quotations, sales orders, invoices, stock moves, purchase orders, manufacturing, projects, subscriptions, or accounting. Best fit when the user needs help across modules, environments, and hosting surfaces instead of only one narrow report or one raw API call.
Use this skill to turn vague business asks into safe, module-aware actions: identify the right records, choose the right interface, preview impact, and only then write or automate.
Architecture
Memory lives in ~/odoo/. If ~/odoo/ does not exist, run setup.md. See memory-template.md for structure.
~/odoo/
├── memory.md # companies, modules, approval boundaries, and stable preferences
├── instances.md # instance URLs, environments, versions, and auth lanes
├── modules.md # custom modules, renamed fields, and local conventions
└── incidents.md # failed imports, access issues, broken automations, and recoveries
Quick Reference
Use the smallest matching file instead of mentally loading the whole ERP every time.
| Topic | File |
|---|---|
| Setup guide | setup.md |
| Memory template | memory-template.md |
| Hosting surface map | surfaces.md |
| Operating lanes by module | operations.md |
| Real request translations | examples.md |
| Safe writes and approval ladder | safety.md |
| Reporting and KPI scoping | reporting.md |
| API, imports, and automation choices | integrations.md |
| Common Odoo models and objects | models.md |
| Broken flow and access triage | triage.md |
Requirements
- No credentials are required to install this skill.
- Runtime access depends on the Odoo instance, credentials, and tools the user already has.
- Detect the hosting surface early: Odoo Online, Odoo.sh, or self-hosted changes what is possible and what is safe.
- Prefer read-only review first, then the smallest write path that matches the job.
- Treat custom modules, record rules, fiscal locks, and warehouse operations as part of the system design, not annoying exceptions.
- Require explicit user confirmation before destructive writes, mass updates, imports that overwrite data, or changes to posted accounting and completed stock records.
Core Rules
1. Identify the Lane Before Touching Records
- Classify the task first: report, operational write, configuration, import, reconciliation, integration, or upgrade triage.
- The lane and hosting surface change the safe interface, the validation steps, and who needs to confirm.
- If the lane is unclear, stay in discovery mode until the intent is explicit.
2. Resolve Module, Model, and Business Object Precisely
1. Identify the Lane Before Touching Records
- Name the module and underlying model before proposing fields, filters, or automations.
- Similar nouns hide different records: lead vs opportunity, quotation vs sales order, product template vs product variant, invoice vs journal entry.
- If custom modules or renamed fields may exist, verify them before pretending the default schema applies.
3. Preview Before Any Write
- Preview with domains, sample rows, counts, target fields, and side effects before a write or import.
- For bulk work, explain the selection logic, duplicate risk, and rollback path first.
- Never move from natural-language intent straight to
create, write, unlink, or import.
4. Respect Finality in Accounting, Inventory, and Procurement
- Posted journal entries, tax locks, stock valuation, landed costs, receipts, and vendor bills have downstream consequences.
- Prefer reversal, cancellation, compensating entry, or corrective follow-up over direct edits to finalized business documents.
- If the user asks for a shortcut that breaks auditability, say so plainly and propose the compliant path.
5. Choose the Lowest-Risk Interface
- Use the Odoo UI for one-off review and simple operational flows.
- Use CSV import for structured bulk changes with reviewable input.
- Use XML-RPC or JSON-RPC only when automation, repeatability, or cross-system orchestration justifies it.
- Do not recommend direct database writes unless the user is doing controlled backend repair and fully understands the blast radius.
6. Scope Business Context Before Giving Numbers
- Confirm company, timezone, currency, warehouses, fiscal period, and status filters before reporting.
- Odoo metrics are easy to misstate because draft, canceled, backordered, and multi-company data often coexist.
- If a dashboard answer depends on accounting policy or custom states, surface that dependency instead of hiding it.
Quick Start
- Detect the lane: reporting, operational change, import, config, or integration.
- Identify the Odoo surface: hosting model, modules involved, environment, version if known, and any customizations.
- Open the matching file:
surfaces.md for Odoo Online, Odoo.sh, or self-hosted constraints
operations.md for day-to-day business flows
examples.md for fast translation from user request to lane and safe first move
reporting.md for KPIs and reconciliation
safety.md for risky writes, corrections, and approvals
integrations.md for API, import/export, and automation design
triage.md for access, module, and workflow failures
- Explain the impact before suggesting an operation that changes records or business state.
Default Moves
create, write, unlink, or import.- Posted journal entries, tax locks, stock valuation, landed costs, receipts, and vendor bills have downstream consequences.
- Prefer reversal, cancellation, compensating entry, or corrective follow-up over direct edits to finalized business documents.
- If the user asks for a shortcut that breaks auditability, say so plainly and propose the compliant path.
5. Choose the Lowest-Risk Interface
- Use the Odoo UI for one-off review and simple operational flows.
- Use CSV import for structured bulk changes with reviewable input.
- Use XML-RPC or JSON-RPC only when automation, repeatability, or cross-system orchestration justifies it.
- Do not recommend direct database writes unless the user is doing controlled backend repair and fully understands the blast radius.
6. Scope Business Context Before Giving Numbers
- Confirm company, timezone, currency, warehouses, fiscal period, and status filters before reporting.
- Odoo metrics are easy to misstate because draft, canceled, backordered, and multi-company data often coexist.
- If a dashboard answer depends on accounting policy or custom states, surface that dependency instead of hiding it.
Quick Start
- Detect the lane: reporting, operational change, import, config, or integration.
- Identify the Odoo surface: hosting model, modules involved, environment, version if known, and any customizations.
- Open the matching file:
surfaces.md for Odoo Online, Odoo.sh, or self-hosted constraints
operations.md for day-to-day business flows
examples.md for fast translation from user request to lane and safe first move
reporting.md for KPIs and reconciliation
safety.md for risky writes, corrections, and approvals
integrations.md for API, import/export, and automation design
triage.md for access, module, and workflow failures
- Explain the impact before suggesting an operation that changes records or business state.
Default Moves
- Confirm company, timezone, currency, warehouses, fiscal period, and status filters before reporting.
- Odoo metrics are easy to misstate because draft, canceled, backordered, and multi-company data often coexist.
- If a dashboard answer depends on accounting policy or custom states, surface that dependency instead of hiding it.
Quick Start
- Detect the lane: reporting, operational change, import, config, or integration.
- Identify the Odoo surface: hosting model, modules involved, environment, version if known, and any customizations.
- Open the matching file:
surfaces.md for Odoo Online, Odoo.sh, or self-hosted constraints
operations.md for day-to-day business flows
examples.md for fast translation from user request to lane and safe first move
reporting.md for KPIs and reconciliation
safety.md for risky writes, corrections, and approvals
integrations.md for API, import/export, and automation design
triage.md for access, module, and workflow failures
- Explain the impact before suggesting an operation that changes records or business state.
Default Moves
surfaces.mdfor Odoo Online, Odoo.sh, or self-hosted constraintsoperations.mdfor day-to-day business flowsexamples.mdfor fast translation from user request to lane and safe first movereporting.mdfor KPIs and reconciliationsafety.mdfor risky writes, corrections, and approvalsintegrations.mdfor API, import/export, and automation designtriage.mdfor access, module, and workflow failures
Use these defaults when the request is underspecified or when multiple Odoo paths are possible. They are not shortcuts; they are the safest first move for each common situation.
| Situation | First move | Why |
|---|---|---|
| Vague business request | Translate it into module, model, state, and output format | Prevents acting on the wrong object |
| Unknown hosting model | Classify as Odoo Online, Odoo.sh, or self-hosted before suggesting tools | UI, shell, logs, and API access differ sharply |
| Bulk update | Preview affected records, duplicates, required keys, and rollback plan | Imports and mass writes are easy to misapply |
| Reporting request | Lock company, period, timezone, status filters, and measures | Odoo numbers drift fast without scope |
| Automation request | Decide between server action, scheduled action, import, or external API | The cheapest automation is often already inside Odoo |
| Access error | Check groups, record rules, company scope, and environment first | Most "broken" actions are permissions or context |
| Broken inventory/accounting flow | Preserve traceability, then fix upstream document or post reversal | Direct edits often make audits worse |
Common Traps
- Treating every request as CRUD when the real task is business process correction
- Mixing draft and posted documents in the same report without saying so
- Writing against
product.template when the workflow actually needs variants on product.product
- Importing records without stable external IDs, natural keys, or duplicate handling
- Editing completed stock or posted accounting moves directly instead of using corrective flows
- Mixing advice for Odoo Online, Odoo.sh, and self-hosted as if all three exposed the same tools
- Assuming standard Odoo fields when the instance has custom modules, studio fields, or renamed states
- Recommending database surgery before exhausting safer UI, import, or API paths
External Endpoints
Endpoint
Data Sent
Purpose
https://<odoo-host>/web
browser session data chosen by the user
interactive review and manual operations
https://<odoo-host>/xmlrpc/2/common
database name, username, password
authenticate and resolve user id
https://<odoo-host>/xmlrpc/2/object
model names, domains, field names, record payloads
read and write records via XML-RPC
https://<odoo-host>/jsonrpc
JSON-RPC payloads for auth or model calls
scripted integrations when JSON-RPC is available
user-chosen export target
report data explicitly requested by the user
deliver CSV, Excel, PDF, or downstream sync
product.template when the workflow actually needs variants on product.product| Endpoint | Data Sent | Purpose |
|---|---|---|
https://<odoo-host>/web |
browser session data chosen by the user | interactive review and manual operations |
https://<odoo-host>/xmlrpc/2/common |
database name, username, password | authenticate and resolve user id |
https://<odoo-host>/xmlrpc/2/object |
model names, domains, field names, record payloads | read and write records via XML-RPC |
https://<odoo-host>/jsonrpc |
JSON-RPC payloads for auth or model calls | scripted integrations when JSON-RPC is available |
| user-chosen export target | report data explicitly requested by the user | deliver CSV, Excel, PDF, or downstream sync |
No other external endpoints should be used unless the user asks for a specific connected system.
Security & Privacy
Data that stays local:
- environment notes in
~/odoo/ - known modules, company rules, and approval boundaries the user wants remembered
- reusable operating decisions such as preferred import format or reporting defaults
Data that may touch external systems:
- only the Odoo instance and export targets already involved in the user's task
This skill does NOT:
- bypass approvals for destructive writes or sensitive financial corrections
- store passwords, tokens, session cookies, or raw export payloads in memory
- assume a production write path when a safer review path exists
- make undeclared network requests by itself
Related Skills
Install with clawhub install <slug> if user confirms:
crm— customer pipeline workflows when the work is mainly around leads, deals, and sales motioninventory— stock-focused operating guidance when warehouse flows become the main problemaccounting— accounting-first workflows for journals, reconciliation, close, and financial controlspowerpoint— executive summaries and deck outputs from Odoo reporting workword— polished SOPs, proposals, and customer-facing documents built from Odoo context
Feedback
- If useful:
clawhub star odoo
- Stay updated:
clawhub sync
clawhub star odooclawhub sync正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。