Wednesday, July 22, 2020
6 changes · master
Enhancements to existing features
Website links for products, blog posts and forum questions are shortened by removing extra words such as product, post and question. Old links remain supported, while route handling is cached to keep redirects fast and avoid slowing down visitors.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The checkout process now better handles countries that require postal codes or states, helping customers provide complete shipping and billing information. This reduces order issues caused by missing address details and makes eCommerce checkout validation more consistent.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
When a form has only one available call-to-action, Odoo now shows it directly instead of hiding it behind an Action dropdown. This removes an unnecessary click and makes guided tours align with the updated behavior.
Original PR description
**PURPOSE:** When there's only one CTA, the Action button is not necessary and add one extra clicks. **SPECIFICATION:** When there's only one CTA, do no group in an Action button. **LINKS:** Task ID: 2225270
Point of Sale settings now include an option to block cashiers from applying manual discounts on individual order lines. This helps businesses enforce pricing rules more consistently and reduce unauthorized discounting at checkout.
Original PR description
Add an option in the pos config to disallow the use of manual discount per order line. task-id: 2082140 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
On mobile, when a form has only one available call-to-action, it is now shown directly instead of hidden inside an Action dropdown. This removes an unnecessary tap and makes common workflows faster and clearer for users.
Original PR description
**PURPOSE:** When there's only one CTA, the Action button is not necessary and add one extra clicks. **SPECIFICATION:** When there's only one CTA, do no group in an Action button. **LINKS:** Task ID: 2225270
Resolved issues and error corrections
Fixes a Chrome-specific issue that caused some website editor settings tied to styling variables to appear incorrectly or stop matching selected values. This restores expected editing controls for website snippets and helps users reliably adjust colors, labels, and related design options.
Original PR description
*: website Commit [1] broke the UI for some options related to CSS variables when using Chrome. The commit made sure the string-value CSS variables are printed with quotes, so that the JS representation of the CSS values can distinguish them (strings = strings with surrounding quotes, others like colors, numbers, etc = strings without surrounding quotes). With chrome, the printed surrounding single quotes are read as double quotes for strange reasons though... so the value "a" was not considered equal to the value 'a'. This commit makes sure surrounding quotes are normalized. This is done through a new utility function to read CSS variables. This also makes sure the values are trimmed, and colors normalized. [1]: https://github.com/odoo/odoo/commit/3a34e39caa8544059dfb1888edc29c62c3efde31