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

Parameters: create_sales_order
NameTypeDescription
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

JSON-RPC

{
  "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

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.