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. CODEerts Partner Code | Customer Code & Vendor Code Sequences | Odoo Contact Reference Numbering v 17.0
  4. Sales Conditions FAQ

CODEerts Partner Code | Customer Code & Vendor Code Sequences | Odoo Contact Reference Numbering

by CODEerts https://www.codeerts.com
Odoo

$ย 19.99

v 17.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 17.0 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 314
Technical Name codeerts_partner_code
LicenseOPL-1
Websitehttps://www.codeerts.com
Versions 17.0 18.0 19.0
  • Description
  • Manifest
  • License
CODEerts  ยท  Odoo 17

Partner Code

Separate, automatic customer and vendor reference codes
for every contact, the way larger ERPs number partners.

Pick a partner type and the contact gets a customer code, a vendor code, or both, each from its own configurable sequence.

Separate Customer & Vendor Codes Per-Company Number Ranges Manual or Automatic Search by Code Shows on Sales & Purchase Docs Community Ready
2
Code Series
Per Co.
Number Ranges
0
Accounting Deps
Search
By Code
v17
Compatible

What this module does

Partner Code gives every contact an automatic reference code based on an explicit partner type. You set the contact as a Customer, a Vendor, Customer and Vendor, or Other, and the module assigns a customer code, a vendor code, or both, each drawn from its own configurable sequence. Your customers run in one series like CUS/00001 and your vendors in another like VEN/00001, so the two never collide.

Everything is configurable from a dedicated Settings section: the prefix and number of digits for each series, whether codes are assigned automatically or on demand, and whether people may type their own. In a multi company database each company keeps its own prefix and an independent number range. You can also show the code next to the partner name across sales, purchase, invoicing and payments, and find any contact by typing its code. It installs on Community and needs no accounting or Enterprise app.

๐Ÿ†”
Separate customer and vendor codes

Each role gets its own series from its own sequence. A contact that is both carries a customer code and a vendor code at the same time.

โš™๏ธ
Configurable and per company

Set the prefix and digits for each series in Settings. In a multi company database every company gets its own prefix and an independent number range.

๐Ÿ”Ž
Visible and searchable

Show the code next to the partner name on sales and purchase documents, and find any contact by typing its customer or vendor code.

๐Ÿท Explicit Partner Type

A clear selector, Customer, Vendor, Customer and Vendor, or Other, decides which code the contact receives.

๐Ÿ”— Stable, Sticky Codes

A code never changes once assigned. A customer you later mark as a vendor keeps its customer code and simply gains a vendor one.

๐Ÿข Per-Company Ranges

Each company sets its own prefix and gets an independent series. Uniqueness is enforced per company.

โœ Optional Manual Entry

Turn on manual codes to type or import your own values, still kept unique per company. Leave it off for read only, sequence only codes.

๐Ÿ—‚ Code in the Partner Name

Show the code next to the partner everywhere it appears. Sales documents lead with the customer code, purchase documents with the vendor code.

๐Ÿ” Search and Group by Code

Type a code into any partner field to find the contact, add code columns to the contact list, and group contacts by partner type.

๐Ÿ“ฅ Bulk Backfill

Give codes to contacts created before you installed the module. Select them in the list, set the type once, and they are all numbered.

๐Ÿ  Community Friendly

Built on core contacts only. No Enterprise app and no accounting dependency, so it runs on any Odoo.

How it works

1
Set your prefixes

Open Settings, Partner Codes, and choose the prefix and number of digits for the customer and vendor series. In a multi company database, switch company to set each one.

2
Pick a partner type

On any contact, set the Partner Type. The matching code is assigned the moment you save, drawn from that series for the active company.

3
Backfill existing contacts

In the contact list, select the contacts you want, set the Partner Type once, and every one of them is numbered together.

4
Show it on your documents

Turn on Show Code in Contact Name and the code appears next to the partner on sales orders, purchase orders, invoices, bills and payments.

5
Find partners by code

Type a customer or vendor code into any partner field and the contact is found, the same way you would search by name or email.

Screenshots

ONE CONTACT, BOTH CODES: a customer and vendor partner with its two reference numbers

Contact with separate customer and vendor codes

CUSTOMER NUMBERING: mark a contact as a customer and it gets a CUS code automatically

Customer code assigned to a contact

VENDOR NUMBERING: vendors run in their own separate VEN series

Vendor code assigned to a contact

ACROSS YOUR CONTACTS: customer and vendor code columns in the contact list

Contact list showing customer and vendor code columns

Technical information

Version
17.0
License
OPL-1
Editions
Community & Enterprise
Dependencies
contacts

Technical name: codeerts_partner_code   ยท   Scope: extends the standard contact, adds no accounting or Enterprise dependency

Frequently asked questions

How do I assign separate customer and vendor codes in Odoo?

You pick a Partner Type on the contact, Customer, Vendor, Customer and Vendor, or Other, and the module draws the matching code from its own sequence, so customers get one series and vendors another. A contact that is both carries a customer code and a vendor code at the same time.

Can each company have its own code prefix and number range?

Yes. In a multi company database each company sets its own prefix and number of digits in Settings and gets an independent number range. The code is issued by the company active when the contact is created, and uniqueness is enforced per company.

Can I type or import my own codes instead of using the sequence?

Yes. Turn on Allow Manual Codes in Settings and the code fields become editable, so you can type a code or import your own while they are still kept unique per company. Leave it off to keep codes read only and sequence only.

Can the code show next to the partner name on sales and purchase documents?

Yes. Turn on Show Code in Contact Name and the code appears next to the partner everywhere it is displayed, on sales orders, purchase orders, invoices, bills and payments. A sales document leads with the customer code and a purchase document leads with the vendor code.

Which Odoo versions are supported?

It is maintained for current major Odoo versions and works on both Community and Enterprise. Each Odoo Apps Store listing shows the exact version it supports.

The team behind this module

About CODEerts

Full-Service Odoo ERP Agency  ยท  Solutions That Scale

Every module in our store is built from real client work, tested in production and maintained long-term by a team of Odoo certified consultants. When you need more than an app, we deliver the full solution.

๐Ÿ—๏ธ Implementation

Full Odoo roll-outs from requirements to go-live, across any industry and company size.

๐Ÿงฉ Custom Development

Bespoke modules, OWL components and business logic built precisely to your workflow.

๐Ÿ”„ Migrations

Zero-data-loss upgrades from older Odoo versions with full custom module porting.

๐Ÿ”Œ Integrations

Payment gateways, shipping carriers, biometric devices, eCommerce and third-party APIs.

๐Ÿ” Odoo Audits

Performance, security and code-quality reviews that surface risks before they become problems.

๐Ÿง‘โ€๐Ÿ’ป Support & Training

Ongoing helpdesk, user training and monthly retainers so your team stays productive.

CODEERTS APPS

More from CODEerts

Other apps we build to make Odoo do more. Tap any card to open it on the Odoo Apps Store.

FREE
Archive Anything
FREE
Transaction Flow Visualizer
FREE
Smart Mail Rebrand
FREE
Duplicate Record Detector
โ€‹
AI Dashboard Builder
โ€‹
Advance Payment Pro
โ€‹
Advance Payment Management
โ€‹
Activity Dashboard

See every CODEerts app on the Odoo Apps Store.

Need Help?

Questions, customization requests, or bug reports. We respond fast.

Email Us
Support

CODEerts  ยท  Response within 1-2 business days

Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Contacts (contacts)
• Discuss (mail)
Lines of code 314
Technical Name codeerts_partner_code
LicenseOPL-1
Websitehttps://www.codeerts.com
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