Monday, February 10, 2025
3 changes · 17.0
Resolved issues and error corrections
Receipts for account settlements and other non-editable orders no longer show the misleading prompt to start adding products. This avoids confusing cashiers and customers when an order correctly has no product lines.
Original PR description
Issue: When settling user account, the order will not have any order lines, that will display a misleading empty state on the receipt, saying: "Start adding products". Fix: We do not display this empty state, when the order is not editable, which is the case of, but not only, settling an account. Note that we have another related PR https://github.com/odoo/enterprise/pull/76370 for the same ticket, which fixes only the case of settling an account. However, @adgu-odoo suggested to make the fix more general, to fix the case of not only settling an account, but also other possible cases where we show the OrderWidget in a receipt. If this PR is merged, the other one should be closed, and vice versa. opw-4430325
This fix updates phone number links to use the standard format expected by browsers. It prevents users from seeing incorrect browser prompts or failed call actions when clicking telephone links created or handled by Odoo.
Original PR description
*: http_routing Since [1], the tel:// format was preferred over tel: due to reasons stated in [2]. However, the change in [2] was a workaround for a bug in the Python library used to parse URLs.…
*: http_routing Since [1], the tel:// format was preferred over tel: due to reasons stated in [2]. However, the change in [2] was a workaround for a bug in the Python library used to parse URLs. According to the relevant RFC, the tel: protocol should not include double slashes. When clicking on a link like `tel://+112351221233` in a browser, a popup may appear attempting to handle the communication using `http://tel//+112351221233` as the browser does not recognize the tel protocol when double slashes are included.   This commit removes the unnecessary double slashes to comply with RFC recommendations and just add a trailing white space to be sure that the url_parse method from werkzeug works properly. [1]: https://github.com/odoo/odoo/commit/6d4a3b3ab5c0f3361d1d681d05b974e295dcbabe [2]: https://github.com/odoo/odoo/commit/56ce29e71f75a657d4b518d86c1d7084891e898e task-4331070
Sales orders automatically created from inter-company purchase orders now use the sales team configured for the customer instead of always using the company default. This helps keep reporting, ownership, and follow-up responsibilities aligned with customer settings.
Original PR description
Sales order created from purchase orders thanks to the inter-company module were assigned the default team of the company, regardless of the customer configuration. This commit makes sure the team is correctly computed in the dedicated compute, ensuring the expected team is assigned to the Sales Order. Backport of b6b5e7ea2bb863f8ca98863c664ec3d72fcda007 opw-4166598