Account Move Line Purchase Info
This module will add the purchase order line to journal items.
The ultimate goal is to establish the purchase order line as one of the key fields to reconcile the Goods Received Not Invoiced accrual account.
Field oca_purchase_line_id it's necessary. In Odoo >=16 automatic revaluation for a product with FIFO costing method only works if invoice lines related to a purchase order line do not include stock journal items. To avoid that oca_purchase_line_id includes invoice and stock journal items, and we keep Odoo field invoice_lines just with bill lines.
- Check issue https://github.com/OCA/account-financial-tools/issues/2017
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Adds the purchase order and purchase order line to journal items, so accountants can trace and group journal entries by purchase order. It also adds a Journal Entries button on purchase orders.
This module links journal items (account.move.line) to the purchase order and purchase order line they come from. On journal items, two new fields appear: purchase_order_id and purchase_line_id, plus a stored oca_purchase_line_id that keeps the purchase line even on stock-related journal items.
Where it appears: - On journal item forms and lists, the purchase order and purchase line are shown next to the partner. - In the Journal Items list, you can filter and group by Purchase Order or Purchase Order Line. - On purchase orders, a Journal Entries button shows the related journal entries, with a count.
Business rules and automatic behaviour: - The purchase order and purchase line are computed automatically from the linked purchase line, including on stock valuation journal items created from stock moves and on price difference entries. - The purchase order line name is displayed as [PO reference] description (status) when shown in journal item contexts. - Access to these fields and menus is controlled by a hidden group "Purchase info in Journal Items", assigned to the administrator by default.
It touches account.move.line, purchase.order, purchase.order.line and stock.move.
Depends on
Required by other modules
Models and fields (4)
- stock.move · extends an existing model
- purchase.order · extends an existing modeljournal_entry_ids (Journal Entries), journal_entries_count
- account.move.line · extends an existing modelpurchase_order_id, oca_purchase_line_id (OCA Purchase Line)
- purchase.order.line · extends an existing modelstock_invoice_lines
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 7 confirmed, 2 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/account-financial-tools.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0The purchase order line will be automatically copied to the journal items.
- When a supplier invoice is created referencing purchase orders, the purchase order line will be copied to the corresponding journal item.
- When a stock move is validated and generates a journal entry, the purchase order line is copied to the account move line.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.