odoo-forge-bundle 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "odoo-forge-bundle",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "status": "scaffold",
5
5
  "payload": {
6
6
  "root": "./payload",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "odoo-forge-bundle",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Generated bundle payload for Odoo Forge internal 1.0.",
5
5
  "type": "module",
6
6
  "exports": "./index.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Odoo Forge",
3
3
  "slug": "odoo-forge",
4
- "version": "0.1.8",
4
+ "version": "0.1.9",
5
5
  "description": "Unified Odoo agent toolkit for Codex and Claude Code.",
6
6
  "localInstallRoot": "~/.odoo-forge",
7
7
  "packages": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "odoo-forge",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Internal Odoo Forge plugin for Claude Code.",
5
5
  "author": {
6
6
  "name": "Internal Team"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "odoo-forge",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Odoo skill suite for Codex and Claude Code.",
5
5
  "skills": "./skills",
6
6
  "mcpServers": "./.mcp.json",
@@ -55,49 +55,99 @@ description: Odoo 模块报告 skill。用于对已选定的模块、仓库或
55
55
  4. 在 `模块报告` 下按仓库名定位或创建多维表,多维表名字就是仓库名字
56
56
  5. 在对应多维表内按 `标题` 查找记录;有则更新,没有则新建
57
57
 
58
- 创建或更新页面、多维表和模块记录时,遵循统一命名和 `icon` 约定:
58
+ 如果对象不存在,按下面的 FlowUS MCP 模板创建,不要自由发挥。
59
59
 
60
- - 页面标题保持纯文本,不把 emoji 写进标题
61
- - `项目Wiki` 使用 `📚`
62
- - 页面 `模块报告` 使用 `📦`
63
- - 仓库级多维表使用 `🗃️`
64
- - 模块记录页使用 `🧩`
60
+ ### 页面与多维表创建模板
65
61
 
66
- 如果对象不存在,创建时就显式写入对应 `icon`,不要依赖默认值。
62
+ 1. 创建 `项目Wiki` 页面:
67
63
 
68
- 创建语法参考:
64
+ ```json
65
+ {
66
+ "properties": {
67
+ "title": "项目Wiki"
68
+ },
69
+ "icon": "📚"
70
+ }
71
+ ```
72
+
73
+ 2. 在 `项目Wiki` 下创建 `模块报告` 页面:
69
74
 
70
75
  ```json
71
76
  {
72
- "项目Wiki": {
73
- "type": "page",
74
- "title": "项目Wiki",
75
- "icon": "📚"
77
+ "parent": {
78
+ "page_id": "{项目Wiki_page_id}"
76
79
  },
77
- "模块报告": {
78
- "type": "page",
79
- "title": "模块报告",
80
- "icon": "📦"
80
+ "properties": {
81
+ "title": "模块报告"
81
82
  },
82
- "仓库级多维表": {
83
- "type": "database",
84
- "title": "server-tools",
85
- "icon": "🗃️"
83
+ "icon": "📦"
84
+ }
85
+ ```
86
+
87
+ 3. 在 `模块报告` 页面下创建仓库级多维表。
88
+ 这里必须创建成页面内可见的内嵌多维表,也就是 `is_inline: true`:
89
+
90
+ ```json
91
+ {
92
+ "parent": {
93
+ "page_id": "{模块报告_page_id}"
86
94
  },
87
- "模块记录页": {
88
- "type": "database_record_page",
89
- "title": "sale_order_tag",
90
- "icon": "🧩"
95
+ "title": [
96
+ {
97
+ "type": "text",
98
+ "text": {
99
+ "content": "server-tools"
100
+ }
101
+ }
102
+ ],
103
+ "icon": {
104
+ "emoji": "🗃️"
105
+ },
106
+ "is_inline": true,
107
+ "properties": {
108
+ "标题": { "title": {} },
109
+ "简介": { "rich_text": {} },
110
+ "使用场景": { "rich_text": {} },
111
+ "推荐度": {
112
+ "select": {
113
+ "options": [
114
+ { "name": "推荐" },
115
+ { "name": "备选" },
116
+ { "name": "谨慎" }
117
+ ]
118
+ }
119
+ }
91
120
  }
92
121
  }
93
122
  ```
94
123
 
95
- 执行顺序也要明确:
124
+ 4. 在仓库级多维表里创建模块记录页:
125
+
126
+ ```json
127
+ {
128
+ "parent": {
129
+ "database_id": "{仓库级多维表_database_id}"
130
+ },
131
+ "properties": {
132
+ "title": "sale_order_tag",
133
+ "简介": "为销售订单提供标签分类与筛选能力",
134
+ "使用场景": "适合在你们项目中需要按业务主题、项目来源或专项任务给销售订单分类时考虑",
135
+ "推荐度": "备选"
136
+ },
137
+ "icon": "🧩"
138
+ }
139
+ ```
140
+
141
+ ### 创建后的验证步骤
142
+
143
+ 每次创建仓库级多维表后,都要立刻验证它是不是“页面内可见”:
144
+
145
+ 1. 对 `模块报告_page_id` 执行一次 `get_block_children`
146
+ 2. 确认返回结果里出现刚创建的仓库级多维表
147
+ 3. 如果页面里看不见,但数据库确实建出来了,优先怀疑创建成了 standalone database
148
+ 4. 此时不要继续写记录,先删掉错误数据库,再按 `is_inline: true` 重建
96
149
 
97
- 1. 如果没有 `项目Wiki`,先创建页面并设置 `📚`
98
- 2. 如果 `项目Wiki` 下没有 `模块报告`,创建页面并设置 `📦`
99
- 3. 如果 `模块报告` 下没有仓库级多维表,创建多维表并设置 `🗃️`
100
- 4. 如果仓库表里没有模块记录,创建记录页并设置 `🧩`
150
+ 不要只以“create_database 调用了成功”作为结束条件,要以“父页面能看到这个内嵌多维表”作为成功标准。
101
151
 
102
152
  ## FlowUS 多维表约定
103
153
 
@@ -121,7 +171,7 @@ description: Odoo 模块报告 skill。用于对已选定的模块、仓库或
121
171
  - `使用场景` 使用文本字段
122
172
  - `推荐度` 使用 `select` 单选字段,选项固定为 `推荐 / 备选 / 谨慎`
123
173
 
124
- 如果多维表不存在,创建时就把 4 个字段一次建齐。目标 schema 参考:
174
+ 如果多维表不存在,创建时就把 4 个字段一次建齐,而且必须是 `is_inline: true` 的内嵌多维表。目标 schema 参考:
125
175
 
126
176
  ```json
127
177
  {