OdooWiki OCA HUB

Partner Supplier Reference Sequence

partner_supplier_ref_sequence folder_open OCA/partner-contact open_in_new
Customer Relationship Management License: AGPL-3

This module adds the possibility to define a sequence for the partner's supplier reference. Then when creating a new partner, if the partner is a supplier, the supplier reference will be automatically set using this sequence.

To distinguish suppliers from customers the partner_manual_rank module is used.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Automatically assigns a supplier reference number to new supplier contacts using a predefined sequence, so you no longer have to type it manually.

This module makes the Supplier Reference field on contacts read-only and fills it automatically with the next number from a sequence called "Supplier Number".

  • When you create a new contact that is marked as a supplier, Odoo gives it the next supplier reference automatically. The rule applies to companies and to individual contacts that have no parent company.
  • If you duplicate an existing supplier contact, the copy also receives a fresh supplier reference from the same sequence.
  • If you later change a contact so that it becomes a supplier (for example by ticking the supplier flag), Odoo fills in the missing supplier reference at that moment, as long as the field is still empty.
  • Because the field is read-only, users cannot type over the automatic number, which keeps references consistent.

The numbering comes from a sequence named "Supplier Number" with a five-digit padding, so references look like 00001, 00002 and so on. The module works together with the supplier reference and manual rank features already installed on contacts. It affects the contact form and the res.partner model.

Models and fields (1)
  • res.partner · extends an existing modelsupplier_ref

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/partner-contact.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.