OdooWiki OCA HUB

Stock Production Lot Multi Company

stock_production_lot_multi_company folder_open OCA/multi-company open_in_new
Stock License: AGPL-3

This module was written to extend the functionality of serial numbers and make them multi company aware.

This is especially important if you are using serial numbers as otherwise Odoo may end up trying to merge stock.quant records having the same lot, but going to the Customers location from 2 different companies (in case it was first shipped from Company 1 to Company2) and this will fail due to a constraint.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Adds a Company field to serial/lot numbers so each lot belongs to one company. Users only see lots of their own company (plus shared ones), and the same lot name can be reused by different companies for the same product.

This module makes serial and lot numbers company-aware in Odoo.

  • A new Company field is added to each serial/lot record. It is filled in automatically with the company of the user creating the record, and it can be changed on the record.
  • The Company field is shown on the serial/lot form (after the Reference field) and in the serial/lot list (after the creation date), but only for users who have access to multiple companies.
  • A uniqueness rule is enforced: the combination of serial number, product and company must be unique. This means two different companies can use the same serial number for the same product, but within one company the same serial number cannot be repeated for the same product.
  • A global record rule limits visibility: users only see serial/lot records that belong to their own company, plus records that have no company set. Records belonging to other companies are hidden.

It touches the stock.production.lot model and the existing serial/lot form and list views from the Inventory app. No new menus or reports are added.

Depends on

stock
Models and fields (1)
  • stock.production.lot · extends an existing modelcompany_id (Company)

Text generated by AI (DeepSeek) from reading the Odoo 12.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 12.0

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

terminal Installation and usage

OCA documentation · Odoo 12.0

There is no specific configuration for this module.

To use this module, you need to:

  • go to Inventory > Master Data > Lots / Serial Numbers to see the company_id in the tree and form views.
  • the usual multi company record rule is installed automatically.

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.