create_template
Convert a Studio layout into a validated template. The tool inspects the layout for errors during creation, ensuring your Odoo PDF or HTML designs are structurally sound before saving.
Instructions
Create a template from a Studio layout {bind_model, slots[], master_refs?, translations?}. The layout is validated first; on errors nothing is saved and the errors carry JSON paths.
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": {
"name": "<name>",
"layout": "<layout>"
},
"name": "create_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| layout | Yes | ||
| mapping | No | ||
| description | No |