Friday, March 14, 2025
2 changes · saas-18.1
Resolved issues and error corrections
Checkout no longer tries to apply Brazil-specific city and state logic when the shopper has selected another country. This prevents an error during address editing, helping non-Brazilian customers complete purchases on Brazilian-company websites.
Original PR description
Versions -------- - saas-18.1+ Steps ----- 1. Enable Brazilian localization; 2. assign eCommerce website to Brazilian company; 3. as a non-Brazilian user, add a product to the cart; 4. during checkout, edit your address; 5. ensure Brazil is not selected in the country selector; 6. change your zip code. Issue ----- Oops! Something went wrong... `UncaughtClientError > TypeError` Cause ----- Commit 08e1857b36cdc introduced a select menu for Brazilian cities on checkout. In order to decide whether to run the custom event handlers, it does a check on `this.countryCode`, which returns the company's country, but not on the country selected in the address form. The error occurs trying to select a Brazilian state regardless of the selected country. Solution -------- Add a check on the country selected in the address form to make sure it's Brazil before attempting to select a Brazilian state. opw-4542781
The IoT Box image setup now includes a required base component for IoT features during its checkout process. This prevents Odoo from failing to start after updates to newer versions, improving reliability for IoT Box deployments.
Original PR description
In saas-18.3 we added base module for IoT modules, but this module was not part of the sparse-checkout on IoT Box images, leading to odoo not starting after a checkout.