Tuesday, February 18, 2025
1 change · master
New functionality added to Odoo
Portal users can now add, edit, remove, and choose default billing and shipping addresses from their account area. This creates a more consistent checkout and invoicing experience while making localized address requirements available beyond e-commerce.
Original PR description
# [REF] portal,website_sale,**: allow multiple address Purpose of this commit is to allow portal user to manage their addressed from portal, allow adding multiple addresses and set default billing…
# [REF] portal,website_sale,**: allow multiple address Purpose of this commit is to allow portal user to manage their addressed from portal, allow adding multiple addresses and set default billing and shipping address.   This commit adds an `Addresses` section in portal `my/home` page which will allow portal users to add multiple addresses for `Billing` and `Shipping` so user can add multiple address and remove them. If a user removes an address, it will be archived in the backend. Additionally, User can also set default `Billing` and `Shipping` address this will allow portal user to choose their default addresses for Invoice, Sale Orders, E-commerce, etc... It will also refactor portal and E-commerce address code to have one generic approach to validate and create addresses this way it'll allow us to have single approach to create and manage addresses from portal and checkout. # [REF] portal,l10n_*: refactor e-commerce localisations Purpose of this commit is to refactor e-commerce related localization to include localisation related details in address form. This commit moves the address form related code for localization into the main localization modules, instead of it in the e-commerce related localization bridge module. This change ensures that the necessary details and validations for addresses are available in the portal, even when the e-commerce module is not installed, and removes the need for those bridge modules. We also refactor LATAM-related localization code, as in Latin American countries, the `Identification Type` and `Identification Number` are the same for all countries. Therefore, we move the related field code into the `l10n_latam_base` module to provide a similar user experience for all LATAM countries, which will allow us to remove code duplication. # [REF] portal,l10n*: merge my/account and address logic The purpose of this commit is to properly strong parsing and validation to ensure smooth address creation and editing from the portal. The address validation currently used on the My Account page is too old and does not check all necessary elements. This commit removes the `my/account` logic and related code and instead utilizes the address logic to provide a similar user experience and validation across all address validations in the portal. This approach will enhance the user experience and make the system more robust. This commit also improves the related code in e-commerce localization by fetching specific data only where needed, rather than fetching it for all "My" pages. Additionally, it refactors the POS invoice generation logic to reuse the functionality implemented in the portal, reducing the need for workarounds. task-3628329