Daily updates from Odoo
Saturday, November 8, 2025
2 changes
1 change
Resolved issues and error corrections
This update prevents an internal error that could appear when a browser’s service worker for Odoo was manually removed and push notifications were re-enabled. It makes the notification setup more reliable, so users are less likely to see a failed push notification message after refreshing the page.
Original PR description
When you manually unregister the ServiceWorker linked to your Odoo,
you may receive a notification "Failed to enable push notifications".
This occurs because the ServiceWorker associated with the previous
subscription is gone and the browser has lost the link between the
subscription and the Odoo instance.
To handle this case, we ensure waiting the activated state of the
registration of the service worker before subscribing to the web push
notification.
Steps to reproduce:
- In Odoo, enable push notifications.
- Inside another tab, go to the internal Chrome URL:
chrome://serviceworker-internals/?devtools
- Unsubscribe the ServiceWorker linked to your Odoo instance.
- In the Odoo instance tab, press F5.
=> You will see an internal notification stating
"Failed to enable push notifications" => BUG.
Forward-Port-Of: odoo/odoo#235039
Forward-Port-Of: odoo/odoo#2349301 change
Resolved issues and error corrections
User avatars in the mail interface will now display with the correct crop and proportions, instead of appearing stretched or distorted. This small visual fix improves the consistency and polish of the chat and discussion areas in Odoo 17.0.
Original PR description
Before this commit, user avatars in the mail UI were not displayed using the `object-fit: cover` style, causing distorted or improperly scaled images. This issue is specific to version 17.0 — both versions 16.0 and 18.0 correctly apply the `cover` mode. After this commit, avatars are now rendered with `object-fit: cover` to ensure proper aspect ratio and consistent display across versions. ex bad ui before <img width="365" height="49" alt="Screenshot 2025-11-08 at 11 39 13 AM" src="https://github.com/user-attachments/assets/7195c594-12c3-4c67-8001-99d1b9e2eebb" /> after <img width="350" height="50" alt="Screenshot 2025-11-08 at 11 38 37 AM" src="https://github.com/user-attachments/assets/500c9f39-abd9-42b7-aba6-7a56e01cd6e2" /> --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr