Odoo Community
Odoo Enterprise
Viindoo Cloud
Two products cannot share an internal reference
Save a product whose internal reference is already used and Odoo refuses it, naming the product that has it.
Unique Product Code (technical name to_unique_product_code) is an Odoo 17.0 app for Odoo Community and Odoo Enterprise and Viindoo Cloud, built for product owner, warehouse, buyer.
At a Glance
The facts of Unique Product Code, version 0.1.1, in one place. Published by Viindoo.
Technical name
to_unique_product_code
Odoo version
17.0 (Odoo Community, Odoo Enterprise, Viindoo Cloud)
Best for
Product owner; Warehouse; Buyer
Not for
It does not fix existing duplicates.
Key features
Internal reference checked for uniqueness when a product is saved, The existing product is named, so the duplicate can be found immediately, Applies per company, like the reference itself, Nothing else changes - the field stays Odoo's own
How It Works
One rule, on the screen you already use.
1
The reference is checked on save
Type a code that is already used and the save is refused, with the product that has it named in the message.
2
The catalogue stays unambiguous
Every code in the list points at exactly one product - which is what makes the list usable as a key anywhere else.
What You Get
Internal reference checked for uniqueness when a product is saved
The existing product is named, so the duplicate can be found immediately
Applies per company, like the reference itself
Nothing else changes - the field stays Odoo's own
More Screens
Everything below was taken on a database seeded with real business data, on this series - not a mock-up and not a screenshot from an older version.
What This App Does Not Do
Read this before you buy. Everything below is something the app deliberately leaves to another app or to you.
It does not fix existing duplicates.
Products that already share a code keep it until you change one; the check applies to what you save from now on.
It does not generate codes.
Automatic numbering is the Product Code Sequence app; this only enforces uniqueness.
It is not the barcode.
The barcode has its own uniqueness rules in Odoo; this is the internal reference.
Works Well With
Apps from the same stack, built to fit this one:
Who Should Use Unique Product Code?
Product owner
Cannot create the ambiguity in the first place.
Warehouse
Scans a code that means one thing.
Buyer
Sends a purchase order the supplier can read.
Frequently Asked Questions
What does Unique Product Code do?
Save a product whose internal reference is already used and Odoo refuses it, naming the product that has it.
What does Unique Product Code not do?
It does not fix existing duplicates. Products that already share a code keep it until you change one; the check applies to what you save from now on. It does not generate codes. Automatic numbering is the Product Code Sequence app; this only enforces uniqueness. It is not the barcode. The barcode has its own uniqueness rules in Odoo; this is the internal reference.
Who is Unique Product Code for?
Product owner: Cannot create the ambiguity in the first place. Warehouse: Scans a code that means one thing. Buyer: Sends a purchase order the supplier can read.
Which Odoo version and editions does it support?
Odoo 17.0 - Odoo Community, Odoo Enterprise, Viindoo Cloud. Upgrades to a newer Odoo series are a separate purchase for that series.
What does it depend on?
It installs on top of: product. Odoo installs them with it.
How do I set it up?
One rule, on the screen you already use.
What works well with it?
Product Code Sequence (to_product_code_sequence): Generate the code instead of typing it. Product Dimensions (to_product_dimensions): The other thing the warehouse needs on a product.
Can I try it before buying?
Yes - the Live Preview button at the top of this page opens the module's own screen on a working database.
How do I get support?
Write to apps.support@viindoo.com with your Odoo version and the technical name to_unique_product_code; pre-sales questions go to sales@viindoo.com.
Need help with Unique Product Code?
For questions, implementation support or a custom feature, contact Viindoo.
Upgrades to a newer Odoo series are a separate purchase for that series.
All Viindoo apps: apps.odoo.com/apps/modules/browse?author=Viindoo
About Viindoo. Viindoo builds and maintains more than 1,000 apps on the Odoo App Store for the Community and Enterprise editions and runs them on Viindoo Cloud. A purchase of Unique Product Code covers the 17.0 series: bug fixes on the module reach you through the store, questions go to apps.support@viindoo.com with the technical name to_unique_product_code, and moving to a newer Odoo series is a separate purchase for that series. Source code is delivered with the module and stays yours to read and adapt.
Technical Requirement
Editions: Odoo Community, Odoo Enterprise, Viindoo Cloud
Changes log
0.1.1 - Latest on the 17.0 line
- The duplicate message names the product that already holds the reference.
Installation
- Navigate to Apps.
- Search with keyword to_unique_product_code.
- Press Install.
Instruction
Instruction video: Unique Product Code
1. Enable the feature
Navigate to Settings and enable the Checking unique Product Internal Reference feature.
2. Warning of existing duplicated internal reference
Navigate to Inventory > Products > Products to create a product with an internal reference attached.
Create another product using the same internal reference. A warning about the duplicated reference will pop up, preventing saving this product.
This software and associated files (the "Software") may only be
used
(executed, modified, executed after modifications) if you have
purchased a
valid license from the authors, typically via Odoo Apps,
or if you
have
received a written agreement from the authors of the
Software (see the
COPYRIGHT file).
You may develop Odoo modules that use the Software as a library
(typically
by depending on it, importing it and using its
resources), but
without
copying any source code or material from the
Software. You may distribute
those modules under the license of your
choice, provided that this
license
is compatible with the terms of
the Odoo Proprietary License (For
example:
LGPL, MIT, or proprietary
licenses similar to this one).
It is forbidden to publish, distribute, sublicense, or sell
copies of the
Software or modified copies of the Software.
The above copyright notice and this permission notice must be
included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT
SHALL THE
AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING
FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE
SOFTWARE.