Odoo: Create a draft invoice
odoo_create_draft_invoiceOdoo: Create a customer invoice in Draft status. Creates the invoice in Draft status and returns its ID and totals. A draft has no accounting impact and no number until it is confirmed, so it reaches nobody and does not wait for your OK. Confirm it with post_invoice. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Invoice lines: description (string), quantity (number), unit_price (number). | |
| due_date | No | Due date. Default: from the contact's payment terms. | |
| reference | No | Customer reference shown on the invoice. | |
| contact_id | Yes | Contact ID from list_contacts or create_contact. | |
| invoice_date | No | Invoice date. Default: today. |