Duplicate records
odoo_copyDuplicate an existing Odoo record, optionally overriding fields on the new copy. The model must be on the workspace's write whitelist with can_create=true. Returns the ID of the newly created record.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"id": "<id>"
},
"name": "odoo_copy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the record to duplicate. | |
| model | Yes | Odoo model technical name. | |
| context | No | Optional Odoo context. | |
| defaults | No | Optional field overrides for the new record. |