OdooWiki OCA HUB

Invoice Production Lots

account_invoice_production_lot folder_open OCA/account-invoice-reporting open_in_new
Accounting & Finance License: AGPL-3

This module shows, for each (customer) invoice line, the delivered production lots that will be also displayed on the invoice report with their corresponding delivered quantities in case the Tracking has been set to By Lots.

Note: As of v13.0, Odoo provides an option under Settings (Inventory \> Configuration \> Settings \> Traceability) to Display Lots & Serial Numbers on Invoices which provides similar functionality. However, it has some limitations compared to this addon:

  • It will only display the associated Lots / Serial Numbers in the

generated Invoice Report, and not in an extra field in the Invoice view form. * It will display all the Lots / Serial Numbers grouped together in an extra line in the Invoice Report. This module adds an extra field in each line with that information.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Shows the delivered production lots or serial numbers of each invoice line, both in the invoice form and on the printed invoice report, with the delivered quantity per lot.

This module adds traceability information to customer invoices. On every invoice line of an account.move, a new "Production Lots" field lists the lots or serial numbers that were actually delivered for that line, taken from the linked stock moves. The information is computed automatically, so users do not have to type it.

Where it appears: - In the invoice form, inside each invoice line, a "Production Lots" section shows the related lots or serial numbers. - On the printed invoice report, the lot information is added next to the line description.

Business rules and behaviour shown in the code: - For products tracked by serial number, the report prints the serial numbers on the line ("S/N: ..."). - For products tracked by lot, the report adds a block listing each lot name together with the delivered quantity for that lot. - The lot information is only visible to users who have access to the production lot feature (the stock lot group).

The module touches account.move.line (new computed field and a helper that groups lots by quantity) and extends the invoice form view and the invoice report template. It relies on the link between invoices and stock moves provided by the sale, stock and invoice link modules.

Depends on

accountsale_stock_picking_invoice_linksale_management
Models and fields (1)
  • account.move.line · extends an existing modelprod_lot_ids (Production Lots)

Text generated by AI (DeepSeek) from reading the Odoo 19.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 8 confirmed, 1 with no information of 9 versions.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/account-invoice-reporting.

terminal Installation and usage

OCA documentation · Odoo 19.0
  • Go to Inventory \> Configuration \> Settings \> Traceability, and activate option Lots & Serial Numbers in order to manage lots in your instance.
  • Go to Sales \> Products \> Products and select Product Type as Goods check that the product has Track Inventory set to By lots or to By Unique Serial Number (in the General Information tab) and Invoicing Policy set to Delivered quantities (in the General Information tab) Invoicing Policy set to Delivered quantities (in the Sales tab)
  • Create and validate a sale order
  • Set Lots/Serial Numbers on the delivered lines by clicking on the button Register lots, packs, location
  • After creating the invoice, the Lots/Serial Numbers are displayed in the Production Lots on the invoice line form and in formatted note field on the invoice report, and, in case Tracking has been selected to By lots, their corresponding delivered quantities will be displad as well.

No verified information in OCA: Installation.

info

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.