Product Barcode Constraint per Company
This module extend Odoo functionalities changing the constraint of the barcode on the product.product model.
With this module, two products can have the same barcode, if there don't belong to the same company.
This constraint was introduced in Odoo V9.0 in that commit, and doesn't fit with some multi companies implementation where products are not shared.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Allows the same product barcode to be used by different companies in a multi-company Odoo database, instead of being globally unique.
By default Odoo blocks saving two products with the same barcode, even when those products belong to different companies. This module changes that rule so the uniqueness check only looks at products of the same company (plus products that have no company set).
- The barcode uniqueness check on
product.productis now limited to the company of the product being saved. - Two products can share a barcode if they belong to different companies.
- Products without a company are still compared with all products, so a barcode used by a shared product cannot be reused by a company-specific product.
There are no new menus, screens, buttons or reports. The change is automatic: it only affects what happens when a user enters or edits a barcode on a product form and saves it. If the barcode already exists in the same company, Odoo still shows the usual uniqueness error; if it exists only in another company, the save is accepted.
The module touches the product.product model and its barcode constraint only. It does not change prices, stock, sales or purchasing behaviour.
Depends on
Required by other modules
Models and fields (1)
- product.product · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 16.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-03Confirmation status: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/stock-logistics-barcode.
terminal Installation and usage
No verified informationInstallation 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.
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.