OdooWiki OCA HUB

Stock Picking Invoice Link

sale_stock_picking_invoice_link folder_open OCA/stock-logistics-workflow open_in_new
Warehouse Management License: AGPL-3

This module adds a link between pickings and invoices as well as on the lines. Invoices are generated from sales orders. With this module, you can find back which deliveries an invoice relates to.

In standard, if you make a partial delivery and invoice it, then make remaining delivery and invoice it, it is impossible to known to what delivery the invoices relate to. You only have the quantity.

This module is also useful if you want to present data on the invoice report grouped by deliveries.

Note that the links are only for products with an invoicing policy set on delivery.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Links deliveries (stock pickings) to the invoices created from sales orders, so you can see which delivery each invoice line relates to. It works automatically once installed.

When you invoice a sales order, this module records which completed stock moves (deliveries) each invoice line corresponds to. This is useful when a delivery is split: you can invoice part of the goods, deliver the rest later, and still know which invoice covers which delivery.

  • On the invoice line, the link is stored in the field move_line_ids, which points to the related stock moves.
  • The link is built only for products whose invoicing policy is set on delivered quantities.
  • When a credit note (refund) is created, only the stock moves marked as returns are linked.
  • If a stock move is already linked to an invoice line, the module avoids linking it again.

It also adds a safety rule: once a delivery is done and linked to an invoice, you cannot freely change the done quantities of that stock move, because that would make the invoice and the delivery inconsistent. The module re-checks and re-links invoice lines when a stock move is set to done.

The module extends sale.order.line and stock.move. It does not add new menus or screens; the link is visible in the existing invoice and delivery records.

Depends on

Models and fields (2)
  • stock.move · extends an existing model
  • sale.order.line · extends an existing model

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: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/stock-logistics-workflow.

terminal Installation and usage

OCA documentation · Odoo 19.0
  • Create a Sales Order and confirm.
  • Deliver its pickings totally or partially.
  • Create an invoice of the goods delivered.
  • If you open invoice form, you must see a new Pickings tab with information about them.

No verified information in OCA: Installation, Configuration.

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.