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. Partner Customer/Vendor Sequences v 18.0
  4. Sales Conditions FAQ

Partner Customer/Vendor Sequences

by Binary Bridge Technology Services https://bbtech.ae
Odoo

$ 35.99

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 • Contacts (contacts)
• Discuss (mail)
Lines of code 216
Technical Name bb_partner_sequences
LicenseLGPL-3
Websitehttps://bbtech.ae
Versions 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Contacts (contacts)
• Discuss (mail)
Lines of code 216
Technical Name bb_partner_sequences
LicenseLGPL-3
Websitehttps://bbtech.ae
Versions 18.0 19.0

BB Partner Sequences

Automatically assign unique Customer and Vendor numbers to your Odoo Contacts. Each company gets its own numbering series (e.g. CUST00001, VEND00001). Assignment happens on create and on update—no buttons, no wizards. Existing customers and vendors are backfilled on install.

BB Partner Sequences - Customer & Vendor Numbering
Overview Screenshots Support

Automatic Customer & Vendor Numbering for Odoo Contacts

BB Partner Sequences adds dedicated Customer No. and Vendor No. fields to Contacts (res.partner) and assigns them automatically based on customer_rank and supplier_rank. Each company has its own numbering series; assignment runs on create and write, and a post-init hook backfills existing customers and vendors—all without any manual action.

Automatic numbering for contacts

A) Dual Sequences (Customer + Vendor)

Two separate numbers for each role:

  • Customer No.: Assigned when the partner is a customer (customer_rank > 0)
  • Vendor No.: Assigned when the partner is a vendor (supplier_rank > 0)
  • Partners who are both customer and vendor receive both numbers (e.g. CUST00005 and VEND00003)

B) Fully Automatic Assignment (No Buttons)

Numbers are assigned without any user action:

  • On create: When a new contact is created with customer_rank or supplier_rank set, the corresponding sequence is assigned
  • On update: When a contact later becomes a customer or vendor (e.g. ranks or company change), missing numbers are assigned
  • Never overwrites: Existing Customer No. or Vendor No. values are left unchanged; only empty fields are filled

C) Backfill Existing Contacts on Install

Existing data is handled automatically:

  • A post-init hook runs after module installation and assigns missing Customer No. and Vendor No. to all existing customers and vendors
  • Processing is done in batches (e.g. 500 records) for large databases
  • Safe and idempotent: only partners with empty sequence fields are updated; re-running does not duplicate or overwrite

D) Multi-Company Numbering

Full multi-company support:

  • Per-company series: Each company has its own ir.sequence for Customer and Vendor (e.g. Company A and Company B each have CUST00001, VEND00001)
  • Company-aware assignment: Uses company_id from the partner when set; for shared contacts (no company), uses the current user's (active) company context
  • No renumbering: Once a number is assigned, it is not changed if the partner's company or the user's company changes later

E) Concurrency-Safe & Unique

Reliable under parallel usage:

  • Sequence generation uses ir.sequence next_by_code in the correct company context (with_company)
  • Sequences use no_gap implementation to avoid duplicates under concurrent requests
  • Unique SQL constraints on Customer No. and Vendor No. ensure no duplicate numbers (empty/NULL is allowed for non-customers/non-vendors)

F) Seamless UI Integration

Minimal, non-intrusive integration:

  • Contact form: Customer No. and Vendor No. are shown in the reference area near the top of the form
  • Contact list: Both columns are available in the tree view (optional visibility)
  • No new menus or workflows; standard Odoo contact usage is unchanged

Frequently Asked Questions

Q: Does it support multi-company?
A: Yes. Each company has its own Customer and Vendor sequences. Numbers are assigned using the partner's company (or the current user's company for shared contacts). Company-specific ir.sequence records are created on module install and when new companies are created.
Q: Will it assign to existing contacts?
A: Yes. When you install the module, a post-init hook automatically backfills all existing customers and vendors that are missing Customer No. or Vendor No. Any contact edited later will also receive missing numbers on save, so even if the hook was skipped, data is filled over time.
Q: Does it work if a partner is both customer and vendor?
A: Yes. The module assigns both a Customer No. and a Vendor No. when the partner has customer_rank and supplier_rank set. Each field is independent and assigned only when that role applies and the field is empty.
Q: Does it overwrite existing numbers?
A: No. Assignment only fills empty Customer No. or Vendor No. values. Once a number is set, it is never changed by the module—even if the partner's company changes or the user switches company.

Screenshots

See BB Partner Sequences in your Odoo Contacts:

Contact Form – Customer No. & Vendor No. fields

Customer No. and Vendor No. in the reference area on the contact form

Contact form with sequence fields Contact form with sequence fields

Contacts List – columns visible

Customer No. and Vendor No. columns in the contacts list view

Contacts list with sequence columns

Multi-company behavior

Company A vs Company B numbering – each company has its own series (e.g. CUST00001 in each)

Multi-company numbering

Vendor assignment example

Vendor No. (VEND00001, VEND00002, …) assigned when partner is a vendor

Vendor number assignment

Customer assignment example

Customer No. (CUST00001, CUST00002, …) assigned when partner is a customer

Customer number assignment

Sequence configuration (optional)

Per-company ir.sequence records for Customer and Vendor (Technical / Settings)

Sequence configuration

Professional Support & Services

Binary Bridge Technology Services

Binary Bridge Technology Services provides professional support for the BB Partner Sequences module. Our Odoo experts can help with installation, configuration, and customization so that customer and vendor numbering fits your multi-company setup.

Installation & Implementation Support

We help you get the module running quickly:

  • Install and configure the module on Odoo 18
  • Verify post-init backfill and per-company sequences
  • Confirm assignment on create/update and multi-company behavior

Customization Services

Need different formats or behavior? We can customize:

  • Custom prefix formats (e.g. CUST-2025-, VEND-COMPANY-A-)
  • Company code in prefix or separate numbering rules per company
  • Migration from existing partner codes or other numbering systems
  • Extra fields or reporting based on Customer No. / Vendor No.
Request Support Chat on WhatsApp
Binary Bridge Technology Services info@bbtech.ae | +971 56 128 6321 | www.bbtech.ae

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