Per-Line AR/AP
Accounts on Products
Assign separate receivable and payable accounts per product invoice line. Each line generates independent journal entries with per-line tax lines.
Features
Everything you need for
per-line accounting
Configure once on the product form. The rest happens automatically when you validate an invoice.
Product-Level AR/AP
Two new fields on the product form: AR Account (asset receivable) and AP Account (liability payable). Company-dependent.
Per-Line Journal Entries
Each invoice line generates its own receivable/payable entry using the product’s account instead of the partner default.
Independent Tax Lines
Tax entries are generated per source invoice line with an origin_line_id link for full traceability.
Smart Fallback
If no product account is set, the partner’s default receivable/payable account is used — preserving standard Odoo behavior.
Payment Term Support
Payment term lines inherit per-line AR/AP accounts via origin_line_id matching. Works with any payment term configuration.
Refund Compatible
Customer refunds and vendor credit notes fully supported. Per-line logic applies correctly with reversed signs.
How It Works
Three simple steps
No complex configuration. Just set accounts on products and create invoices as usual.
Configure the product
Open any product form, go to the Accounting tab, and set the AR Account and/or AP Account fields to the desired receivable/payable accounts.
Create an invoice
Add multiple products with different AR/AP accounts to a single invoice. The system stores your per-line account preferences automatically.
Validate — done
When you validate the invoice, Odoo generates per-line receivable/payable entries and per-line tax entries using the product accounts you configured.
Comparison
Standard vs with our module
See the difference in journal entries for a multi-product invoice.
Customer Invoice INV/2025/0001 │ Account │ Debit │ Credit │ 120000 Receivables (debtor)│ 230.00 │ │ 400000 Product A Revenue │ │ 100.00 │ 400001 Product B Revenue │ │ 100.00 │ 220700 Tax 11% (combined) │ │ 30.00
Customer Invoice INV/2025/0001 │ Account │ Debit │ Credit │ 120100 AR - Product A │ 115.00 │ │ 120200 AR - Product B │ 115.00 │ │ 400000 Product A Revenue │ │ 100.00 │ 400001 Product B Revenue │ │ 100.00 │ 220700 Tax 11% (line A) │ │ 15.00 │ 220700 Tax 11% (line B) │ │ 15.00
FAQ
Common questions
Does this module change existing invoices? ▼
What if a product has no AR/AP account set? ▼
Does this work with multi-currency? ▼
Is it compatible with Odoo Enterprise? ▼
Details
Compatibility
- Version
- 19.0.1.0.0
- License
- OPL-1
- Dependencies
- account, product
- Editions
- Community & Enterprise
Please log in to comment on this module