OdooWiki OCA HUB

Partner last name uppercase

partner_lastname_uppercase folder_open OCA/partner-contact open_in_new
Extra Tools License: AGPL-3

This module uppercases last names on create and write.

This module uses python upper function. This function uses the default unicode case folding*. This works for many languages, but not for all, like turkish where ı/I i/İ pairs work differently (see cpython issue 17252).

  • The uppercasing algorithm used is described in section 3.13 ‘Default

Case Folding’ of the Unicode Standard.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Adds an option to automatically write the last names of individual contacts in capital letters. It also provides a one-time action to uppercase all existing last names.

This module extends the Contacts app (and any other place where partners are used) to store last names in uppercase for individuals, not companies.

  • A new setting called "Uppercase Lastnames" appears in the General Settings, under the Companies section. It is off by default. When turned on, any new individual contact created with a last name will have that last name automatically converted to uppercase. The same happens when you edit an existing individual contact and change the last name or the company/individual flag.
  • The module also adds a server action named "Uppercase all lastnames - not reversible". Running it will go through all existing individual contacts that have a last name and convert those last names to uppercase. This action is not reversible, so it should be used carefully.
  • The conversion uses the standard Python uppercase function, which follows Unicode default case folding. This works for many languages but not for all, for example Turkish, where the relationship between dotted and dotless i is different.
  • The module depends on the partner_firstname module, which splits the name field into first name and last name. Only the last name is affected; first names are left unchanged. Companies are never modified.
Models and fields (2)
  • res.partner · extends an existing model
  • res.config.settings · extends an existing modelconvert_lastnames_to_uppercase

Text generated by AI (DeepSeek) from reading the Odoo 17.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: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 17.0

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

terminal Installation and usage

OCA documentation · Odoo 17.0

After installation, tick "Uppercase Lastnames" in the general configuration pannel.

A server action (Uppercase all lastnames) is provided to initialize the data. To launch it :

  • activate debug mode
  • find the action in Technical \> Server Actions
  • click "add contextual action"
  • on any partner, from the action menu, run "Uppercase all lastnames"
  • return to the server action
  • click "remove the contextual action"

Note : this operation is not reversible.

No verified information in OCA: Installation.

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.