Daily updates from Odoo
Tuesday, March 24, 2026
1 change
Resolved issues and error corrections
This update resolves a critical issue where a user's inbox could crash when accessing multiple companies. The problem stemmed from a permissions error preventing proper notification handling, specifically when a user viewed messages related to a partner in a different company. This fix ensures inbox stability and consistent access across all company environments.
Original PR description
### Issue: Due to this bug, user's inbox can crash and become inaccessible by another user. #### Steps to reproduce: 1- Create a db with two companies and sale installed with demo data. 2- Demo user should only have access to company A 3- Demo user preference should be handle in Odoo 4- Admin should access both companies 5- Create a partner called partner_b with company set to company B 6- Using admin create a SO in company B, with the partner_b 7- Send a message (not internal note) in SO chatter, and mention Demo user 8- Login using Demo user 9- Open discuss app. As you see the inbox is not accessible anymore. ### Cause: This is caused because Demo user doesn't have read access to partner_b. This cause issue in adding notification for partner_b. https://github.com/odoo/odoo/blob/6e262e8cf7666216305a04f92c213578452fd652/addons/mail/models/mail_message.py#L1042-L1064 opw-5089738 Forward-Port-Of: odoo/odoo#252298 Forward-Port-Of: odoo/odoo#232894