Saturday, December 27, 2025
3 changes · 19.0
Resolved issues and error corrections
This fix prevents extra spaces at the end of product names from being saved through certain text fields. It avoids duplicated product names appearing in delivery descriptions, making sales and delivery documents clearer and more consistent.
Original PR description
**Steps to reproduce:** 1. Create a product with a trailing space at the end of its name. 2. Create a quotation and confirm it. 3. Open the delivery through stat button. **Observation:** - The…
**Steps to reproduce:** 1. Create a product with a trailing space at the end of its name. 2. Create a quotation and confirm it. 3. Open the delivery through stat button. **Observation:** - The picking description displays the product name twice when the product name ends with trailing spaces. **Cause:** The duplication occurs due to a combination of two issues: 1. **In sale_stock** https://github.com/odoo/odoo/blob/ac6d4f0211e7680b5f5b41537b1e2eb2c9efb239/addons/sale_stock/models/stock.py#L32 products without attributes, `_get_sale_order_line_multiline_description_variants()` returns an `empty` string, yet the code still prepends a newline before the existing picking description. When the product name contains trailing spaces, this newline `+` trailing-space combination causes Odoo to interpret the description as multiple lines, resulting in the product name being duplicated on the picking. 2. **In web,** the char field with `widget="text"` did not trim trailing spaces when saving the value. This allowed product names such as `"Test "` to be stored. **Fix:** - Trim the value entered in `char` fields using `widget="text"` when the field has `trim=True`, preventing trailing spaces from being saved and ensuring consistent description generation. **opw-5351356** Forward-Port-Of: odoo/odoo#238064
The discussion avatar stack now displays consistently without avatars overlapping sidebar elements. This prevents visual glitches when multiple participants appear, improving readability and polish in the mail interface.
Original PR description
Before this commit, the avatar's in the avatar stack z-index was derived from the participant’s position in the recordset, resulting in descending z-index values greater than 1. Since .o-mail-DiscussSidebar-top has a z-index of 2, avatars with a higher z-index could incorrectly appear above it when multiple avatars were present. This commit fixes the issue by assigning a fixed z-index of 1 to all avatars, ensuring a consistent and correct stacking behavior. task-5417539 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#240189
This update fixes a technical issue where unused sign item roles were accumulating in the database, preventing them from being removed. A simple workaround – creating a dummy sign item – has been implemented to trigger database cleanup, ensuring data efficiency and preventing unnecessary storage.
Original PR description
Fixes an issue where sign item roles were created but never deleted if they had no sign items linked to them. These orphaned roles were no longer shown in the app and remained in the database indefinitely. To address this, a dummy sign item is now created for each new sign item role. This allows the autovacuum logic to detect and automatically clean up unused roles and dummy items. Without this dummy item, it would be impossible to determine if a role is truly orphaned. task-4971485 Forward-Port-Of: odoo/enterprise#102870 Forward-Port-Of: odoo/enterprise#91189