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. Contacts
  3. Auto Sequence Number for Customer & Vendor v 18.0
  4. Sales Conditions FAQ

Auto Sequence Number for Customer & Vendor

by Lucidbrainz https://www.lucidbrainz.com
Odoo

$ 3.49

v 18.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Purchase (purchase)
• Invoicing (account)
• Discuss (mail)
Lines of code 69
Technical Name auto_customer_vendor_sequence
LicenseOPL-1
Websitehttps://www.lucidbrainz.com
Versions 15.0 16.0 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Purchase (purchase)
• Invoicing (account)
• Discuss (mail)
Lines of code 69
Technical Name auto_customer_vendor_sequence
LicenseOPL-1
Websitehttps://www.lucidbrainz.com
Versions 15.0 16.0 17.0 18.0
  • Description
  • License

Auto Sequence Number for Customer & Vendor

Auto Generate Unique Numbers | Customer Prefix C00001 | Vendor Prefix V00001 | Form, List & Kanban Views


Overview

Auto Sequence Number for Customer & Vendor by LucidBrainz is a smart and lightweight Odoo 18 module that automatically generates unique sequence numbers for Customers and Vendors at the time of their creation. Managing a large number of business partners becomes easy when each Customer gets a unique identifier like C00001, C00002... and each Vendor gets a unique identifier like V00001, V00002... — all assigned automatically without any manual effort. The module intelligently detects whether a partner is being created as a Customer or a Vendor using Odoo's context mechanism and assigns the appropriate sequence accordingly. The sequence number field is read-only, ensuring data integrity and preventing accidental edits. It is fully visible across all three major views — Form View, List/Tree View, and Kanban View — giving users complete visibility at every level. Built using Odoo's native ir.sequence framework, the module is reliable, conflict-free, and production-ready. The module follows standard Odoo development practices including @api.model_create_multi for Odoo 18 compatibility, proper sequence data with noupdate="1" flag, and clean model inheritance via _inherit. No complex configuration, no setup wizard — simply install the module and sequence numbers start generating instantly. Perfect for businesses that need structured partner identification, client code management, vendor tracking, and organized ERP data from day one.

Key Features

  • Auto Customer Sequence: Unique sequence number (C00001, C00002...) is automatically assigned when a new Customer is created — zero manual effort required.
  • Auto Vendor Sequence: Unique sequence number (V00001, V00002...) is automatically assigned when a new Vendor is created — separate series from customers.
  • Visible in Form View: Sequence number prominently displayed at the top of the partner form view for instant identification.
  • Visible in List/Tree View: "Number" column added in list view allowing easy sorting and scanning of all partners with their sequence numbers.
  • Visible in Kanban View: Sequence number shown on each kanban card giving users quick identification in card-based views.
  • Read-Only Field: Sequence number is non-editable — prevents accidental changes and ensures data integrity across all records.
  • Copy Protection: Sequence number is not duplicated when a partner record is copied — new unique number is generated automatically.
  • Odoo 18 Compatible: Uses @api.model_create_multi — fully aligned with Odoo 18 development standards and best practices.
  • Native ir.sequence Framework: Built on Odoo's native sequence engine — reliable, conflict-free, and supports concurrent multi-user environments.
  • Instant Activation: No setup wizard, no data migration needed — install and sequence numbers start assigning immediately.
  • Clean Model Inheritance: Uses standard Odoo _inherit on res.partner — no database conflicts with other customization modules.
  • noupdate="1" Safety: Sequence data protected with noupdate="1" flag — sequences won't reset during module upgrades.

How It Works

Step 1: Install the Module

Install the module from Odoo Apps. Upon installation, two ir.sequence records are automatically created — one for Customers with prefix "C" and padding 5 digits, and one for Vendors with prefix "V" and padding 5 digits. No manual sequence configuration needed.

Step 2: Create a New Customer

Navigate to Sales → Customers → New. The moment you save the record, the system detects default_customer_rank > 0 from the context and automatically calls ir.sequence.next_by_code('res.partner.customer.sequence') to assign the next Customer number like C00001.

Step 3: Create a New Vendor

Navigate to Purchase → Vendors → New. The system detects default_supplier_rank > 0 from the context and automatically calls ir.sequence.next_by_code('res.partner.vendor.sequence') to assign the next Vendor number like V00001.

Step 4: View Sequence Number

The sequence number appears instantly on the Form View at the top, in the List View as the first column titled "Number", and on each Kanban card — giving complete visibility across all views. The field is read-only so no accidental edits are possible.

Step 5: Unique & Permanent

Each sequence number is unique and permanent. If a record is duplicated using Odoo's built-in copy feature, the copy=False attribute ensures the old number is not copied — a fresh new number is assigned automatically upon save.

Odoo 18 Auto Sequence Number - Module Screenshots

Customer Form View - Sequence Number C00001

👤 CUSTOMER FORM VIEW: Customer record "Julya" showing auto-generated sequence number C00001 prominently displayed at the top of the form. Number is read-only and assigned automatically on creation. Smart buttons for Sales, Purchases, Invoiced, and Vendor Bills visible at top right for quick navigation.
Customer Kanban View - Sequence Numbers

🃏 CUSTOMER KANBAN VIEW: Customers displayed in Kanban card layout. New customer "test customer" card clearly showing sequence number C00001 on the card. Existing partners like Deco Addict and Azure Interior shown alongside — only newly created customers get the sequence number assigned.
Customer List View - Number Column

📋 CUSTOMER LIST VIEW: All customers listed with "Number" column as the first column. Jemima assigned C00002 and Julya assigned C00001 — clearly visible in the list. Existing partners (Deco Addict, Azure Interior) without sequence remain blank showing backward compatibility. Easy to sort and filter by sequence number.
Vendor Form View - Sequence Number V00002

🏭 VENDOR FORM VIEW: Vendor record "Newton" showing auto-generated sequence number V00002 prominently at the top. Separate "V" prefix series for vendors — completely independent from Customer "C" series. Accessed via Purchase → Vendors menu. Read-only field ensures number integrity.
Vendor Kanban View - Sequence Numbers

🃏 VENDOR KANBAN VIEW: Vendors displayed in Kanban card layout. "Newton" showing V00002 and "test vendor" showing V00001 on their respective cards. Sequence numbers clearly visible without opening individual records — improves team productivity and quick vendor identification.
Vendor List View - Number Column

📋 VENDOR LIST VIEW: All vendors listed with "Number" column as first column. Newton assigned V00002 and test vendor assigned V00001 — clearly visible. Existing vendor Azure Interior without sequence remains blank for backward compatibility. Full list view accessible from Purchase → Vendors.


VIEW OUR MORE APPS

Our Services

Odoo
Implementation

Odoo
Customization

Odoo
Migration

Support &
Maintenance



📞 Contact Us

WhatsApp:
+91 8686786108

Email:
lucidbrainzinfotech@gmail.com

Address:
206, Sambhaav Building, Above SBI Bank,
Nana Mava Road, Rajkot - 360005,
Gujarat, India.

🌐 Follow Us

📘 Facebook 📸 Instagram 💼 LinkedIn 🎥 YouTube

© 2025 LucidBrainz | All Rights Reserved | License: OPL-1 | Version: 18.0.1.0.0

Odoo Proprietary License v1.0

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.

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 or have a question related to your purchase, please use the support page.
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