Daily updates from Odoo
Wednesday, July 16, 2025
1 change · master
Security fixes and vulnerability patches
Barcode line descriptions now keep their line breaks without relying on a less safe rendering method. This preserves the same visual layout for users while reducing the risk of unsafe text handling in the barcode workflow.
Original PR description
This commit replaces the usage of unsafe `markup` with the CSS property: `white-space: pre-wrap` for showing the line description in barcode. Previously, `markup` was used to preserve the line breaks in the line description by replacing all `\n`s with `<br/>` which required using `markup` to render the text properly. However, the above mentioned CSS property achieves the same exact result by not ignoring the line breaks in the original string. Forward-Port-Of: odoo/enterprise#90145