Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Configuration
  3. Product Auto Internal Reference v 19.0
  4. Sales Conditions FAQ

Product Auto Internal Reference

by Odoo Nerd https://www.odoo.com
Odoo
v 19.0 Third Party 3
Download for v 19.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
You bought this module and need support? Click here!
  • Description
  • Manifest

Product Auto Internal Reference

Automatically assign a unique internal reference to every product variant the moment it is created โ€” zero manual effort.

Odoo 19 Multi-company Configurable sequence Variant-level

What it does

โšก

Instant auto-assignment

References are generated at the moment a product variant is saved โ€” no extra clicks, no manual entry.

๐Ÿ”ข

Configurable sequence

Pick your own prefix, padding length, and starting number. Ships with PROD-00001 out of the box.

๐Ÿข

Multi-company ready

Each company can have its own independent sequence, keeping references clean across business units.

๐Ÿ”’

Uniqueness enforced

A database-level constraint prevents duplicate references from ever being saved, even on import.

๐Ÿ“‹

Copy-safe

Duplicating a product clears the old reference so a fresh one is automatically assigned to the copy.

๐ŸŽฏ

Variant-level precision

Works at the product.product level โ€” each variant (size, colour, etc.) gets its own unique reference.

How to configure

1

Install the module

Go to Apps, search for Product Auto Internal Reference, and click Install.

2

Open Settings

Navigate to Settings โ†’ Product Auto Reference. A default sequence (PROD- prefix, 5-digit padding) is already selected.

3

Choose or create a sequence

Select any existing ir.sequence or create a new one from Settings โ†’ Technical โ†’ Sequences. Set any prefix and padding you like.

4

Save and start creating products

Every new product variant will automatically receive a reference from your chosen sequence โ€” that's it!

Tip: Existing products are not touched on install. The module only assigns references to new variants created after installation. To back-fill existing products, update them manually or via a one-time script.

Technical notes

The module extends product.product (variant model) at the create level. It falls back gracefully: company sequence โ†’ module default sequence โ†’ sequence by code product.auto.ref. A _sql_constraints entry enforces uniqueness on default_code. No core Odoo files are modified.


Dependencies: product, stock, base_setup  |  License: LGPL-3  |  Author: Odoo Nerd

Product Auto Internal Reference  ยท  v19.0.1.0.0  ยท  Odoo Nerd
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Inventory (stock)
• Discuss (mail)
Lines of code 121
Technical Name auto_reference_generate
LicenseLGPL-3
Websitehttps://www.odoo.com

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal โ€ข Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with