OdooWiki OCA HUB

Partner language according country

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

This module adds the "language" field to country form to auto-define that language when defining the country in a partner.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you set a default language on each country, so partners created with that country automatically get that language. It saves typing the language on every contact.

This module links countries to languages. On each country record you get a new field called "Enforce language" where you pick a language.

When a contact (partner) is created or its country is changed, Odoo automatically fills in the contact's language with the language set on that country. This happens both when you create a contact from the screen and when contacts are created automatically by other processes, as long as no language was already given.

Where it appears: - On the country form, right after the country code, you find the "Enforce language" field. - On contacts, the language field is filled automatically based on the country.

Business rules and automatic behaviour: - The country's language is used as the default language for its partners. - If a language is already set on the contact, it is not overwritten. - The language on the contact is computed from the country and stored, but you can still change it manually afterwards.

It touches the country and contact records (res.country and res.partner). No new menus or reports are added.

Depends on

base
Models and fields (2)
  • res.country · extends an existing modellang (Enforce language)
  • res.partner · extends an existing modellang

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: 7 confirmed, 2 with no information of 9 versions.

Sources · Odoo 19.0

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

terminal Installation and usage

OCA documentation · Odoo 19.0
  • Go to Settings -\> Translations -\> Settings, and active some language (French for example).
  • Go to Contacts -\> Configuration -\> Countries, edit some country (France) and set some language (French).
  • Go to Contacts and create new record with France country, language field will have self-defined to French.

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.