Odoo
Implementation
| 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 |
| License | OPL-1 |
| Website | https://www.lucidbrainz.com |
| Versions | 15.0 16.0 17.0 18.0 |
| 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 |
| License | OPL-1 |
| Website | https://www.lucidbrainz.com |
| Versions | 15.0 16.0 17.0 18.0 |
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
_inheritonres.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
Our Services
Odoo
Customization
Odoo
Migration
Support &
Maintenance
📞 Contact Us
WhatsApp:
Email:
Address: |
🌐 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