Create a quotation
Create a quotation for a customer in the Sales app.
MCP tool odoo_write → create_sales_order
write
Creates a quotation and returns its ID and totals. It stays a quotation: it is not sent and not confirmed, so it reaches nobody and does not wait for your OK. Confirming and invoicing it happen in Odoo.
Parameters
| Name | Type | Description |
|---|---|---|
| contact_id integer required | integer | Contact ID from list_contacts or create_contact. |
| lines array required | array | Order lines: description (string), quantity (number), unit_price (number). |
| reference string | string | Customer reference. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "odoo_write",
"arguments": {
"operation": "create_sales_order",
"arguments": {
"contact_id": 1,
"lines": "lines"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"order_id": 2231,
"number": "S00094",
"contact": "Harbor Print",
"status": "quotation",
"lines": [
{
"description": "Consulting, hours",
"quantity": 10,
"unit_price": 120,
"subtotal": 1200
}
],
"amount_untaxed": 1200,
"amount_total": 1200,
"currency": "EUR"
},
"isError": false
}