OdooWiki OCA HUB

Partner Sequence Address Type

partner_sequence_address_type folder_open OCA/partner-contact open_in_new
Partner Management License: AGPL-3

This module allows to use different sequences to generate values for Reference field in partner, according to their address type.

It also makes Reference field visible when opening records from "Contacts & Addresses" kanban cards.

Please note: in this module child contacts do not inherit Reference value from parent contact, and value of field Reference is never read-only.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

This module lets you assign a different numbering sequence to the Reference field of contacts depending on their address type (e.g. contact, invoice address, delivery address). It also makes the Reference field visible on contact cards.

When you install this module, Odoo creates a new configuration screen called "Partner Sequence by Address Type" under the Contacts settings. There you see one line per address type (for example Contact, Invoice Address, Delivery Address, Other Address, and "No address type set"). For each line you can pick an existing numbering sequence.

From then on, whenever a contact is created or its address type changes, Odoo automatically fills the Reference field using the sequence linked to that address type. If no sequence is configured for the type, no reference is generated.

A few important behaviours shown in the code: - A reference is generated even for child contacts and for non-company contacts, unlike the standard behaviour. - The reference is not copied from a parent company to its child contacts, so each contact keeps its own number. - The Reference field is always editable, and it is also shown directly on the contact form when you open a contact from the Contacts & Addresses cards.

The module touches the partner model (res.partner) and adds a small configuration model (res.partner.sequence.type) that links an address type to a sequence. Only managers can change the configuration; regular users can view it.

Depends on

Menus it adds

menu_res_partner_sequence_type_action
Models and fields (2)
  • res.partner · extends an existing model
  • res.partner.sequence.type · new modelcode, name, sequence_id

Text generated by AI (DeepSeek) from reading the Odoo 14.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 14.0

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

terminal Installation and usage

OCA documentation · Odoo 14.0

Users with access rights Administration: access rights can access menu "Partner Sequence by Address Type" from Contacts > Configuration and set a sequence for each address type.

Address types without sequence will not have a Reference value assigned automatically.

No verified information in OCA: Installation, Configuration.

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.