Wednesday, January 21, 2026
2 changes · master
New functionality added to Odoo
This update centralizes address form logic, simplifying maintenance and improving consistency across Odoo. It introduces a new 'portal_address_extended' module that supports city selection when 'enforce_cities' is enabled, specifically improving address management in Chile. Localization modules have been updated to utilize this common implementation.
Original PR description
This commit introduces a new bridge module to centralize and simplify the frontend address management logic when `enforce_cities=True`. Before this commit: --- - Several localization modules were…
This commit introduces a new bridge module to centralize and simplify the frontend address management logic when `enforce_cities=True`. Before this commit: --- - Several localization modules were overriding `base_address_extended` and its `address_form_fields` template to customize the address form. - Each localization duplicated similar logic related to city selection. In this commit: --- - Add a new module `portal_address_extended` providing a generic frontend address template that supports selecting a city from the list of cities when `enforce_cities=True`. - Enable enforce_cities support in Chile with added cities data. - Adapt localization modules to rely on this common implementation. --- If `enforce_cities=False`: --- <img width="1826" height="941" alt="image" src="https://github.com/user-attachments/assets/47f667a7-cdbb-41e5-b9e2-3c62f16ce8ee" /> If `enforce_cities=True`: --- `city selection` instead of `city text` field <img width="1893" height="942" alt="image" src="https://github.com/user-attachments/assets/03f311f5-8e73-4ce6-897a-362af641f2ae" /> <img width="1821" height="942" alt="image" src="https://github.com/user-attachments/assets/695f2fc2-cde9-4a7d-9197-57edb3bf9160" /> --- Task-5098839 enterprise- odoo/enterprise#95885
This update centralizes address form logic, simplifying maintenance and ensuring consistency when city enforcement (`enforce_cities=True`) is enabled. It introduces a generic address template with a city selection field, improving the user experience and reducing duplication across localization modules. This change primarily impacts Chile and supports the new city enforcement feature.
Original PR description
This commit introduces a new bridge module to centralize and simplify the frontend address management logic when `enforce_cities=True`. Before this commit: --- - Several localization modules were…
This commit introduces a new bridge module to centralize and simplify the frontend address management logic when `enforce_cities=True`. Before this commit: --- - Several localization modules were overriding `base_address_extended` and its `address_form_fields` template to customize the address form. - Each localization duplicated similar logic related to city selection. In this commit: --- - Add a new module `portal_address_extended` providing a generic frontend address template that supports selecting a city from the list of cities when `enforce_cities=True`. - Enable enforce_cities support in Chile with added cities data. - Adapt localization modules to rely on this common implementation. --- If `enforce_cities=False`: --- <img width="1826" height="941" alt="image" src="https://github.com/user-attachments/assets/47f667a7-cdbb-41e5-b9e2-3c62f16ce8ee" /> If `enforce_cities=True`: --- `city selection` instead of `city text` field <img width="1893" height="942" alt="image" src="https://github.com/user-attachments/assets/2f182870-8e19-44a2-8801-792b0e8137a6" /> <img width="1821" height="942" alt="image" src="https://github.com/user-attachments/assets/695f2fc2-cde9-4a7d-9197-57edb3bf9160" /> --- Task-5098839 community- odoo/odoo#229243