@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.
- package/dist/commands/project.js +2 -1
- package/package.json +1 -1
package/dist/commands/project.js
CHANGED
|
@@ -168,9 +168,10 @@ export async function createTaskCommand(opts, globals) {
|
|
|
168
168
|
}
|
|
169
169
|
return;
|
|
170
170
|
}
|
|
171
|
-
const
|
|
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,
|