Daily updates from Odoo
Thursday, February 7, 2019
6 changes
Resolved issues and error corrections
Belgian VAT numbers are now normalized to include the required leading zero when needed. This helps ensure VAT details appear correctly on official Belgian reports and compliance documents.
Original PR description
Odoo Accept the following mask for vat encoding : BE0477472701 BE.0.477.472.701 BE.477.472.701 BE477.472.701 BE477472701 But, in certain cases we have to add the zero to be compliance (i.e. belgian official reports...). -> http://www.tvaintracommunautaire.eu/belgique.html This commit make use of the compact method defined in stdnum.be.vat (which is used by vatnumber in order to validate the vat). The compact method return a 10 digits vat number starting with a 0 which is compliant with the official reports. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an issue that prevented visitors from opening the website menu on mobile devices, especially iOS. It helps ensure mobile users can navigate the website reliably, improving access to pages and content.
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
This change removes outdated email-escaping behavior from HTML sanitization so valid HTML content is no longer altered unexpectedly. It helps prevent issues such as embedded images or links containing @ symbols being incorrectly escaped.
Original PR description
Related to #30326 Before #30326, when calling html_sanitize, some content may be escaped when it shouldn't. A simple example was images with cid links containing @. (a first fix for another use case was made in 8aff53733b6ca1dd6f8074834ada1baaab3910d5) We suspect that this escaping (added in 71a92f46e4e223a3bad0e27ececa2ece3c09f5d1) was made to avoid loosing email with format '<email@domaine>' in html_sanitize to escape them if html_sanitize is called on plain text. Anyway, only html should be passed to html_sanitize, and therefore email of format <email@domain> should already be escaped. PR #30326 fixes the unwanted behaviour in 12.0 and this commit removes this logic in master.
Fixed an issue that prevented users on iPhones and iPads from opening the website menu properly. This improves mobile navigation for visitors and staff using the website from iOS devices.
Original PR description
PR https://github.com/odoo/odoo/pull/30507 fixed the problem in stable versions, this commit makes the proper fix for master. task-1923151
This fixes an issue where users with signed portal links could be blocked from posting comments because the system compared the same identifier in two different formats. The change ensures the identifier is handled consistently, so valid signed links work as intended.
Original PR description
To post a comment with a signed token, we compare tokens with the pid. The token is signed with the pid, which is an integer. When checking access, we compare the token with a pid as char. Obviously, the comparison failed, and posting the message is refused, as the 2 'pid' does not share the same type. This commit cast the recieved 'pid' into an integer before checking special access.
This update removes unused layout elements from a website configuration view. The change makes the view simpler to maintain and easier for future customizations, without changing how users interact with the website.
Original PR description
Description of the issue/feature this PR addresses: Remove elements that have no use in the view Current behavior before PR: The view has `div` elements and `groups` within `group`, while both are not needed. Desired behavior after PR is merged: The redundant elements are removed, which makes the view much cleaner to inherit. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr