npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@huo15/openclaw-odoo-dev

v0.3.0

Published

火一五·辉火云企业套件(Odoo 19)龙虾插件 — 自然语言操作Odoo、通知同步、待办管理

Readme

| 🏫 教学机构 | 👨‍🏫 讲师 | 📧 联系方式 | 💬 QQ群 | 📺 配套视频 | |:-----------:|:--------:|:------------------:|:-----------:|:-----------------------------------:| | 逸寻智库 | Job | [email protected] | 1093992108 | 📺 B站视频 |


火一五·辉火云企业套件插件

OpenClaw 插件 — 自然语言操作辉火云企业套件(Odoo 19)、通知同步、待办管理、活动提醒

版本: 0.3.0(多用户隔离版)


功能特性

🤖 智能自然语言操作

用户可以用自然语言与 Odoo 交互,系统自动理解意图并执行操作:

| 用户说 | 系统理解 | 执行操作 | |--------|----------|----------| | 帮我创建个待办 | todo.create | 在 project.task 创建记录 | | 提醒我明天开会 | calendar.create | 创建日历事件 | | 看看我的待办 | todo.list | 查询用户待办列表 | | 帮我查一下客户 | search.partner | 搜索 res.partner |

🔔 通知同步

自动轮询 Odoo 系统,将以下更新实时同步到 OpenClaw:

  • 📋 待办任务更新
  • ⏰ 活动提醒
  • 💬 新消息
  • 📧 邮件通知
  • 📅 日历事件

👥 多用户隔离(核心特性)

每个用户有独立的 Odoo 配置,数据完全隔离:

  • 每个用户(agentId)独立存储配置
  • 首次操作时自动引导配置
  • 用户间配置互不影响
  • 参考企微插件(dingtalk)的动态 Agent 模式

🛡️ 安全机制

⚠️ 当前版本:密码明文存储在 ~/.openclaw/plugin-configs/odoo-config.json

后续升级计划(TODO):改用 OpenClaw SecretInput 机制

  • 支持 env 环境变量引用
  • 支持 file 文件加密存储
  • 支持 exec 命令动态获取
  • 完全兼容企微插件的凭证管理方式

安装

# 克隆项目
git clone https://github.com/zhaobod1/huo15-openclaw-odoo-dev.git

# 进入目录
cd huo15-openclaw-odoo-dev

# 安装依赖
npm install

# 源码模式安装到 OpenClaw
openclaw plugins install -l .

首次使用

用户首次操作 Odoo 时,插件会自动引导配置:

用户:帮我查一下销售订单
助手:🔔 首次使用 Odoo 插件,需要先配置连接信息

请提供以下信息:
1. 系统地址(URL)- 如:https://www.huo15.com
2. 数据库名称(db)- 如:huo15
3. 用户名(username)- 您的登录账号
4. 密码(password)- 您的登录密码

输入示例:
"连接 Odoo,地址 https://www.huo15.com,数据库 huo15,用户名 [email protected],密码 xxx"

配置成功后,后续操作无需重复输入。


配置

插件配置(openclaw.plugin.json)

{
  "id": "odoo-dev",
  "name": "火一五·辉火云企业套件插件",
  "configSchema": {
    "properties": {
      "sync": {
        "type": "object",
        "properties": {
          "enabled": true,
          "intervalSeconds": 30,
          "channels": ["todo", "activity", "message"]
        }
      }
    }
  }
}

本地配置存储

每个用户的配置保存在:

~/.openclaw/plugin-configs/odoo-config.json

配置结构(多用户版):

{
  "users": {
    "agentId_1": {
      "agentId": "agentId_1",
      "odoo": {
        "url": "https://www.huo15.com",
        "db": "huo15",
        "username": "[email protected]",
        "password": "xxx"
      },
      "configuredAt": 1712700000000
    },
    "agentId_2": {
      "agentId": "agentId_2",
      "odoo": {
        "url": "https://www.huo15.com",
        "db": "huo15",
        "username": "[email protected]",
        "password": "yyy"
      },
      "configuredAt": 1712800000000
    }
  }
}

工作流程

1. 首次配置(自动引导)

用户:帮我连接辉火云
助手:请提供 Odoo 系统地址、数据库名、账号和密码
用户:https://www.huo15.com, huo15, [email protected], password123
助手:✅ 已成功连接到辉火云企业套件

2. 创建待办

用户:帮我创建一个待办,明天给客户发报价单
助手:✅ 已创建待办「给客户发报价单」,截止日期: 明天

3. 查看列表

用户:看看我的待办
助手:📋 您的待办列表:
1. 给客户发报价单 (截止: 2026-04-10)
2. 跟进订单进度
3. 周会准备

4. 创建日历事件

用户:提醒我后天上午10点有个产品评审会议
助手:✅ 已创建日历事件「产品评审会议」,时间: 后天 10:00

技术架构

┌─────────────────────────────────────────────────────────┐
│                     OpenClaw                            │
│  ┌─────────────────────────────────────────────────┐    │
│  │              odoo-dev 插件(多用户版)            │    │
│  │                                                  │    │
│  │  ┌─────────────────────────────────────────┐    │    │
│  │  │     多用户隔离层(agentId = userId)      │    │    │
│  │  │                                          │    │    │
│  │  │  agent A → [config A] → [client A]      │    │    │
│  │  │  agent B → [config B] → [client B]      │    │    │
│  │  │  agent C → [config C] → [client C]      │    │    │
│  │  └─────────────────────────────────────────┘    │    │
│  │                                                   │    │
│  │  ┌─────────────┐  ┌──────────────┐              │    │
│  │  │ NLP 处理器  │  │ 通知轮询器    │              │    │
│  │  │             │  │              │              │    │
│  │  │ • 意图解析  │  │ • 定时轮询    │              │    │
│  │  │ • 实体提取  │  │ • 变更检测    │              │    │
│  │  │ • 路由分发  │  │ • 推送通知    │              │    │
│  │  └─────────────┘  └──────────────┘              │    │
│  │                                                   │    │
│  │  ┌─────────────────────────────────────────┐    │    │
│  │  │            Odoo JSON-RPC 客户端          │    │    │
│  │  │                                          │    │    │
│  │  │ • 认证 /web/session/authenticate        │    │    │
│  │  │ • 查询 /web/dataset/call_kw            │    │    │
│  │  │ • 通知轮询                              │    │    │
│  │  └─────────────────────────────────────────┘    │    │
│  └─────────────────────────────────────────────────┘    │
└─────────────────────────────────────────────────────────┘
                          │
                          ▼
┌─────────────────────────────────────────────────────────┐
│               辉火云企业套件(Odoo 19)                   │
│                                                          │
│  • 项目管理 (project)     • CRM 客户关系                  │
│  • 客户联系人 (res.partner)  • 日历 (calendar)           │
│  • 消息 (mail)           • 库存 (stock)                  │
│  • 销售 (sale)            • 采购 (purchase)               │
│  • 财务 (account)         • 人力资源 (hr)                 │
│                                                          │
└─────────────────────────────────────────────────────────┘

目录结构

huo15-openclaw-odoo-dev/
├── index.ts                    # 插件入口(多用户版)
├── package.json                # 项目配置
├── openclaw.plugin.json        # 插件清单
├── README.md                   # 本文件
├── SKILL.md                    # 技能说明
└── src/
    ├── index.ts                # 入口导出
    ├── types/
    │   └── index.ts            # 类型定义(多用户配置)
    ├── config/
    │   └── accounts.ts        # 多账号解析(企微同款)
    └── modules/
        ├── odoo-client.ts       # Odoo API 客户端
        ├── config-manager.ts    # 配置管理器(多用户版)
        ├── nlp-handler.ts       # 自然语言处理器
        ├── notification-poller.ts # 通知轮询器
        └── onboarding.ts        # 首次配置引导

开发

源码修改后重新安装

# 停止 OpenClaw
openclaw gateway stop

# 重新安装
openclaw plugins install -l /path/to/huo15-openclaw-odoo-dev

# 启动 OpenClaw
openclaw gateway start

调试

插件会在控制台输出日志:

[Odoo Plugin] 插件已加载(多用户隔离版)
[Odoo Plugin] 工具已注册
[Odoo Plugin] 钩子已注册
[Odoo Plugin] 已连接到 Odoo(用户: agentId_1),UID: 5

安全升级计划(TODO)

| 阶段 | 内容 | 状态 | |------|------|------| | Phase 1 | 当前版本明文存储 | ✅ 已完成 | | Phase 2 | 升级为 SecretInput 机制 | TODO | | Phase 3 | 支持 env 环境变量引用 | TODO | | Phase 4 | 支持 file 文件加密存储 | TODO | | Phase 5 | 支持 exec 命令动态获取 | TODO |


TODO

  • [x] 多用户隔离架构
  • [x] 首次配置自动引导
  • [x] 多账号解析模块(企微同款)
  • [ ] 支持 WebSocket 实时通知(替代轮询)
  • [ ] 支持更多 Odoo 模型的操作
  • [ ] 支持 Odoo Workflow 审批流
  • [ ] 支持仪表盘数据查询
  • [ ] 支持报表生成
  • [ ] 支持附件上传/下载
  • [ ] 升级为 SecretInput 安全存储
  • [ ] 多语言国际化(中文/英文)

版本历史

| 版本 | 日期 | 更新内容 | |------|------|----------| | 0.3.0 | 2026-04-10 | 多用户隔离版 - 每个用户独立配置,企微同款架构,首次操作自动引导配置 | | 0.2.1 | 2026-04-09 | 支持 NLP 意图识别,30+ 意图模式 | | 0.1.0 | 2026-04-10 | 首次发布,支持基础 CRUD 和通知同步 |


作者

青岛火一五信息科技有限公司


许可

MIT License


公司名称: 青岛火一五信息科技有限公司

联系邮箱: [email protected] | QQ群: 1093992108


关注逸寻智库公众号,获取更多资讯