update_invoice
Update draft invoices or bills: modify header fields and replace all line items. Posted documents are rejected; use a reversal or credit note instead.
Instructions
Update a draft invoice/bill's header fields and/or replace its lines entirely. Odoo will reject this once the move is posted -- use a reversal/credit note for posted documents instead.
lines, if given, REPLACES all existing lines (same line-dict shape
as create_invoice's lines argument).
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": {
"move_id": "<move_id>"
},
"name": "update_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | ||
| values | No | ||
| move_id | Yes |