@bergetai/odoo-cli 0.4.1 → 0.4.2

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.
@@ -168,9 +168,10 @@ export async function createTaskCommand(opts, globals) {
168
168
  }
169
169
  return;
170
170
  }
171
- const taskId = (await client.executeKw("project.task", "create", [
171
+ const rawTaskId = (await client.executeKw("project.task", "create", [
172
172
  [taskValues],
173
173
  ]));
174
+ const taskId = Array.isArray(rawTaskId) ? rawTaskId[0] : rawTaskId;
174
175
  const result = {
175
176
  task_id: taskId,
176
177
  name: opts.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bergetai/odoo-cli",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Agent-first CLI for the Odoo External API",
5
5
  "publishConfig": {
6
6
  "access": "public"