OdooWiki OCA HUB

Purchase Sale Lot Intercompany

purchase_sale_lot_intercompany folder_open OCA/multi-company open_in_new
Purchase Management License: AGPL-3

In some groups, the lot/serial number is a better product identifier than the product variant (e.g. configurable products with many attributes, or attributes that don't create variants). This identifier must be propagated and enforced on every document: sales, purchases, stock and accounting.

This module propagates the lot/serial number set on an intercompany purchase order line to the matching sale order line in the supplier company. Thanks to sale_order_lot_selection and stock_restrict_lot, the supplier company has to deliver the lot ordered by the buyer.

Lots are shared between companies: the lot of the purchase line is reused (its company is cleared if needed) instead of being duplicated.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

When a company buys from a sister company, this module copies the lot/serial number chosen on the purchase order line onto the matching sale order line, so the supplier must deliver exactly that lot.

This module extends the intercompany purchase-to-sale flow. When a purchase order placed with a sister company automatically creates the matching sale order in that sister company, the lot/serial number entered on the purchase line is carried over to the sale line.

The behaviour is optional and controlled per company. In the company settings, next to the intercompany purchase-to-sale option, a new checkbox "Propagated Lots from purchase to sale" lets you switch it on. It only appears when the company is set up to generate sale orders from purchase orders.

When the option is active and the purchase line has a lot/serial number, that lot is reused on the sale line instead of being duplicated. If the lot belongs to a specific company, its company is cleared so it can be shared between the two companies.

  • Applies to purchase.order lines and the sale order lines generated from them.
  • Adds a setting on res.company and in the general settings screen.
  • Relies on the lot selection on sale orders and on lot restriction in stock, so the supplier company is pushed to deliver the ordered lot.

No new menus or reports are added; the change is a setting plus automatic data propagation during intercompany order creation.

Models and fields (3)
  • res.company · extends an existing modelpropagated_serial_number (Lots/Serial Numbers are propagated in this company)
  • purchase.order · extends an existing model
  • res.config.settings · extends an existing modelpropagated_serial_number (Lots/Serial Numbers propagated in sale)

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

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

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/multi-company.

terminal Installation and usage

OCA documentation · Odoo 18.0

In the settings of the supplier company, check "Propagated Lots from purchase to sale".

In the buyer company, set a lot/serial number on a purchase order line and confirm the purchase order: the generated sale order line gets the same lot.

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.