Wednesday, April 30, 2025
2 changes · saas-18.2
Resolved issues and error corrections
This fix prevents Point of Sale restaurant orders from failing when they are created and paid while offline, then reloaded after reconnecting. It improves reliability for staff using POS in unstable network conditions by correctly handling saved order identifiers.
Original PR description
This error occurs when creating an `order` and `validating payment` in offline mode then reloading the same order. Steps to reproduce: - Install module `pos_restaurant`. - Open `POS Restaurant`. -…
This error occurs when creating an `order` and `validating payment` in offline mode then reloading the same order. Steps to reproduce: - Install module `pos_restaurant`. - Open `POS Restaurant`. - Add some products to the order go to Payments, and select card(Pick any table) - Open Inspect, go to the Network tab and enable Offline Mode. - Click Validate, go to `Orders`, and click `Load Order`. - Add Products to the `Orders` and click on Order. - In the Network tab, enable No Throttling and click on Orders again. - Do the above step one more time on the same table. ValueError Expected singleton: pos.order() This error occurs due to the `missing handling ID` as a string like in saas18.1 at [1], so when the fieldName is a string the type system is unable to fetch the ID This commit resolves the error by ensuring that the ID is correctly processed. If it is a number, it remains unchanged. If it is a string containing an underscore (_), the numeric part after _ is extracted. Link [1] :https://github.com/odoo/odoo/blob/d4e40e4be4233d91db80717891cef73c4fdec06c/addons/point_of_sale/static/src/app/models/related_models.js#L281-L285 Sentry - 6365371665 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Spanish companies will now always show the business customer fields needed during checkout and address editing. This prevents customers from getting blocked by a required VAT field that was hidden by website settings.
Original PR description
Versions -------- - saas-18.2+ Steps ----- 1. Enable Spanish localization; 2. assign website to Spanish company; 3. disable B2B fields in checkout via website editor; 4. edit address in eCommerce as a Spanish customer. Issue ----- Impossible to proceed, as VAT is a required field, but isn't displayed. Cause ----- Commit 26df8d31ab94 fixed this issue in earlier versions, but wasn't adapted for changes in 18.2+ where 5a93da8e9220 refactored address management. Solution -------- Override `_prepare_address_form_values` to always render B2B fields when the current company is Spanish. opw-4708230