The eCommerce address presentation (in /shop/address) of vanilla Odoo does not cover the format of some countries.
This module adds the capability to change the address field sequence in the eCommerce address page.
auto_awesome What this module does
AI-generated from the code · Odoo 15.0Lets you control the order and visibility of address fields (street, city, zip, state, country) shown in the eCommerce checkout address form, per country, using a custom layout pattern.
This module extends the country configuration so you can define a custom address layout for the online shop's address forms. On each country record, a new field 'Layout in eCommerce Address Forms' is added, where you enter a pattern using placeholders like %(street)s, %(city)s, %(zip)s, %(state_name)s, %(country_name)s, etc. The order in which these placeholders appear determines the order of the fields on the website address form.
When a customer selects a country during checkout, the module reads that country's pattern and reorders the address fields accordingly. It also hides fields that are not included in the pattern, so you can show only the fields relevant for that country. The standard Odoo logic that always places zip before or after city is replaced by this custom ordering.
The module affects the res.country model by adding the new field and a helper method, and it modifies the country form view to include the new field. It also overrides the website sale controller and frontend JavaScript to apply the layout dynamically when the country changes. No new menus are added; the setting is available directly on each country's form.
Depends on
Models and fields (1)
- res.country · extends an existing modelonline_address_format (Layout in eCommerce Address Forms)
Text generated by AI (DeepSeek) from reading the Odoo 15.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-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 15.0
Confirmed on 2026-11-03 in branch 15.0 of OCA/e-commerce.
terminal Installation and usage
OCA documentation · Odoo 15.0Configuration
Source · Odoo 15.0Go to Contacts > Configuration > Localization > Countries, and open the country for which the address field sequence should be adjusted in the eCommerce address page.
Update 'Layout in eCommerce Address Forms' field with something like the below (an example for Japan):
%(country_name)s
%(zip)s
%(state_code)s
%(city)s
%(street)s
%(street2)sNo verified information in OCA: Installation, Usage.
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.
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.