Daily updates from Odoo
Saturday, September 20, 2025
2 changes · 19.0
Resolved issues and error corrections
This fixes a display issue in the Mail Threads panel where some thread previews appeared too narrow instead of filling the available space. Users now get a cleaner and more consistent view when browsing conversation threads.
Original PR description
Follow-up of https://github.com/odoo/odoo/pull/227734 PR above made an improvement to display thread preview below message that initiated these threads. This PR introduced a style regression in thread list: some thread previews in the thread list in the "Threads" action panel were not taking the whole width, which this commit fixes. Before <img width="483" height="302" alt="Screenshot 2025-09-20 at 12 48 02" src="https://github.com/user-attachments/assets/daaec1cc-d57b-414a-aa47-b9db9d720596" /> After <img width="483" height="303" alt="Screenshot 2025-09-20 at 12 48 13" src="https://github.com/user-attachments/assets/285c2d2d-d79b-4db6-b808-e046cb152e73" />
This fix prevents an error when users press the up arrow while editing an empty message composer for a message that only contains an attachment. The message editor now stays stable, avoiding an unnecessary interruption in the mail workflow.
Original PR description
**Description of the issue this PR addresses:** ------------------------------------------------ Pressing the ArrowUp key in the editing composer when it is empty while editing a message with only an…
**Description of the issue this PR addresses:** ------------------------------------------------ Pressing the ArrowUp key in the editing composer when it is empty while editing a message with only an attachment caused a JavaScript traceback. This happened because the composer was not associated with a thread, and the code tried to access `composer.thread.lastEditableMessageOfSelf`. **Current behavior before PR:** --------------------------------- - Pressing ArrowUp in the empty editing composer triggers a TypeError - The error occurs when editing a message that only has an attachment - The composer does not have a thread reference **Desired behavior after PR is merged:** ----------------------------------------- - Pressing ArrowUp in this scenario safely checks if a thread exists - No TypeError occurs, and the composer remains stable **Task:** 5068553 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#227673