create_journal_entry
Create a balanced draft manual journal entry in Odoo by specifying journal, date, and line items with debits and credits. Prepares accounting entries for posting.
Instructions
Create a DRAFT manual journal entry (move_type='entry').
lines: list of dicts, each with "account_id" and either "debit" or "credit" (or both, defaulting to 0) plus optional "name" (label), "partner_id", "analytic_distribution". Must balance (total debit == total credit) -- Odoo enforces this on post.
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": {
"journal_id": "<journal_id>",
"date": "<date>",
"lines": "<lines>"
},
"name": "create_journal_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| date | Yes | ||
| lines | Yes | ||
| company_id | No | ||
| journal_id | Yes |