OdooWiki OCA HUB

Product multi-company Stock

product_multi_company_stock folder_open OCA/multi-company open_in_new
Product Management License: AGPL-3

This modules does not allow to remove a company from company_ids if there is stock or moves in that company

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Prevents removing a company from a product's allowed companies when that company still has stock quantities or stock moves for the product. Also adjusts how the company is set on lot/serial numbers for products shared across companies.

This module adds a safety rule to product company settings. When you try to remove a company from the list of companies allowed for a product, Odoo checks whether that company still holds stock or has stock movements for the product.

  • If there are stock quantities in internal locations for that company, the change is blocked and an error lists the companies that cannot be removed.
  • If there are stock moves recorded for that company, the change is also blocked with a similar message.

This check runs on the product template and covers all its variants, including archived ones. It appears wherever you edit the companies field on a product, for example in the product form.

The module also changes how the company is determined on lot/serial numbers (stock.lot). For products that are only allowed in a single company, the standard behaviour is kept. For products shared by several companies, the lot keeps its existing company if it already had one, otherwise it takes the company from the product.

It touches the product template and lot/serial number models and works together with the stock and multi-company product modules. It installs automatically.

Depends on

Models and fields (2)
  • stock.lot · extends an existing model
  • product.template · extends an existing model

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

Sources · Odoo 15.0

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

terminal Installation and usage

No verified information

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.

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.