OdooWiki OCA HUB

Partner Address Format Domestic

partner_address_format_domestic folder_open OCA/partner-contact open_in_new
Uncategorised License: AGPL-3

This module allows defining a domestic address format for each country, which will be applied in printed reports when the transactions are domestic.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets you define a separate address layout for domestic transactions, so printed documents show addresses in the local format when the partner is in your company's country.

This module adds a second address format option to each country, used only for domestic business. On the country form (Countries screen), a new "Domestic Address Format" field appears, but only for countries that are actually used by at least one company in your database. A short note next to it explains that it changes how addresses are displayed in reports for domestic transactions.

When Odoo builds the address text for a partner, it now checks whether the partner's country is the same as the country of the current company. If it is, and a domestic address format has been filled in for that country, that domestic layout is used instead of the standard one. In every other case, the normal address format is kept.

  • Adds a "Domestic Address Format" text field on res.country.
  • Shows that field on the country form only when the country is relevant for a company.
  • Changes address rendering on res.partner through _get_address_format.
  • Affects any printed report that uses the partner address format, such as invoices, sales orders or delivery slips.

No new menus, buttons, emails or scheduled actions are added; the change is limited to country configuration and address display.

Depends on

base
Models and fields (2)
  • res.country · extends an existing modeladdress_format_domestic (Domestic Address Format), is_relevant_for_company
  • res.partner · extends an existing model

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

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

terminal Installation and usage

OCA documentation · Odoo 16.0
  • Enable developer mode, and go to Contacts > Configuration > Countries.
  • Select a country associated with a company in your database.
  • Fill in the Domestic Address Format.

No verified information in OCA: Installation, Usage.

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.