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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| date | Yes | ||
| lines | Yes | ||
| company_id | No | ||
| journal_id | Yes |