Confirm (post) an invoice
Confirm a draft invoice so it becomes Posted and gets its number.
MCP tool odoo_write → post_invoice
write Confirm
Clicks Confirm on a draft invoice. The status changes to Posted, Odoo assigns the invoice number and creates the journal entry, and the invoice can no longer be edited. The call fails if the invoice is not a draft. To change a posted invoice, Odoo has Reset to draft. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| invoice_id integer required | integer | Invoice ID from list_invoices or create_draft_invoice. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "odoo_write",
"arguments": {
"operation": "post_invoice",
"arguments": {
"invoice_id": 1
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"invoice_id": 4201,
"number": "INV/2026/00431",
"status": "posted",
"payment_status": "not_paid",
"amount_total": 2400,
"amount_due": 2400,
"currency": "EUR"
},
"isError": false
}