This module adds the possibility to define a sequence for the partner's reference. This reference is then set as default when you create a new partner, using the defined sequence.
The reference field is treated as a commercial field, i.e. it is managed from the commercial partner and then propagated to the partner's contacts. The field is visible on the contacts, but it can only be modified from the commercial partner.
No references are assigned for contacts such as shipping and invoice addresses.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Automatically gives every new company or main contact a customer code taken from a numbered sequence (for example P/00001), and shares that code with the company's contacts.
This module fills in the Reference field on contacts with an automatic code instead of you typing it. When you create a new company, or a contact that is not attached to a parent company, Odoo looks up the "Partner code" sequence and writes the next value (prefix P/ followed by a 5-digit number) into the Reference field, unless you already entered something yourself.
- The same automatic code is given when you duplicate a contact, and it is also filled in later if an existing contact that should have a code still has an empty Reference.
- The Reference is treated as a commercial field: it belongs to the main company contact and is copied down to that company's contacts, so all contacts of the same company show the same code.
- On the contact form, the Reference field becomes read-only for contacts that are not companies and that have a parent company, so it can only be changed on the main commercial contact.
- No code is generated for contacts that are only delivery or invoice addresses (contacts with a parent company that are not companies).
The module works on the res.partner model and adds a default sequence record named "Partner code" with code res.partner. It does not add new menus; the change is visible directly in the existing contact form.
Depends on
Required by other modules
Models and fields (1)
- res.partner · extends an existing modelref
Text generated by AI (DeepSeek) from reading the Odoo 19.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-03Confirmation status: 8 confirmed, 1 with no information of 9 versions.
Sources · Odoo 15.0
Confirmed on 2026-11-03 in branch 15.0 of OCA/partner-contact.
terminal Installation and usage
No verified informationInstallation 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.
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.