OdooWiki OCA HUB

Sequential Code for Leads / Opportunities

crm_lead_code folder_open OCA/crm open_in_new
Customer Relationship Management License: AGPL-3

This module adds a sequential code for leads / opportunities.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds an automatic sequential reference number to every lead and opportunity in Odoo CRM, shown on forms, lists and kanban cards and searchable by that number.

This module gives each lead and opportunity a unique reference number, so you can identify and quote a record without relying on its title.

  • A new "Lead Number" field is added to leads and opportunities. It is filled automatically when the record is created, using a sequence with the prefix "LD" and four digits (for example LD0001).
  • The number is read-only and cannot be copied when duplicating a record, and it must be unique: Odoo blocks saving a duplicate number.
  • The number appears on the lead/opportunity form, in the list views for both leads and opportunities, and on the kanban cards.
  • The search boxes for leads and opportunities now also match the number, so typing a reference finds the right record.
  • When the module is installed, existing leads and opportunities are given numbers based on their current record identifiers, so old records are not left blank.

It works entirely inside the CRM lead and opportunity screens (crm.lead); no new menus are added.

Depends on

crm
Models and fields (1)
  • crm.lead · extends an existing modelcode (Lead Number)

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

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

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.