Friday, August 2, 2024
6 changes · master
Resolved issues and error corrections
Email template content posted in the chatter now stays contained within the message bubble. Wide content becomes scrollable instead of spilling out, keeping conversations easier to read and the interface visually consistent.
Original PR description
**Current behavior before PR:** When an email template is posted inside the chatter, the content overflows in the x-direction, causing a UI issue where the message bubble does not handle the overflow properly.  **Desired behavior after PR is merged:** The issue has been fixed, making the message content scrollable inside the message bubble, preventing overflow and maintaining proper UI appearance. **Task**-4083373 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix allows HTML content viewers to handle both formatted objects and plain text strings. It helps prevent display issues when rendering HTML fields such as email or message bodies.
Original PR description
`HtmlViewer` only accepts object type, which might not always be passed, for example when `body_html` is being rendered, therefore it makes sense to add string type as `body_html` has string type task-4053127 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 HTML editor now handles certain hidden characters more safely when content is inserted. This prevents rare editing failures and helps users continue working with pasted or imported content without interruption.
Original PR description
Certain HTML contents, specifically those containing zero-width non-breaking spaces (unicode FEFF), could cause `domInsert` to call `cleanTrailingBR` with a null argument. This commit ensures that the function is protected against such cases.
The HTML editor now keeps the text selection safely when users change selected paragraph text into a heading. This prevents an error that could interrupt editing and improves reliability for users formatting documents.
Original PR description
Steps to reproduce: 1. On an empty document, type some text in the first paragraph. 2. Control + A to select all the text. 3. Select "Header 1" on the dropdown menu under the font button (first button). A traceback is raised due to trying to set the selection to null. This commit ensures that the selection is preserved correctly in the `setTag` method. Details: Previously, the logic for preserving the selection could result in passing null as argument to setSelection. In the case reported above, `startContainerChild` stored a reference to the paragraph that was replaced by the h1 (thus, removed). Since it was disconnected when `startContainerChild.parentNode` was evaluated, `null` was assignated to `startContainer` right before passing it as argument to `setSeletion`.
Operation type names in the Brazilian AvaTax localization can now appear in the user's language. This fixes a missing translation setting, improving clarity for Portuguese and multilingual users without changing tax behavior.
Original PR description
translate=True was forgotten when the l10n_br.operation.type model was added. Since it requires a database change it can only be done in master. Thanks to TIC for notifying us. task-3803424
This fixes an issue in Point of Sale where connected weighing scales could reference the wrong IoT device address. It helps ensure scale integrations connect reliably during checkout, reducing disruption for stores using IoT hardware.