Wednesday, November 10, 2021
6 changes · master
Enhancements to existing features
Notification emails using the lighter layout now include a clear link to view the related document, matching the standard email experience. The update also standardizes how email layouts are selected across apps, making notifications more consistent and easier to maintain.
Original PR description
PURPOSE Display "View document" link on notification emails using the 'light' layout as done in standard layout. Cleanup layout xml id propagation through composer or email sending in mail and…
PURPOSE Display "View document" link on notification emails using the 'light' layout as done in standard layout. Cleanup layout xml id propagation through composer or email sending in mail and various applications. SPECIFICATIONS: LAYOUT XML ID USAGE Get rid of context usage and use a real field on mail.compose.message model. Support old context key in composer for backward compatibility, working like a default value for the field itself. On template model: rename ``notif_layout`` parameter of ``send_mail`` to ``email_layout_xmlid`` to be coherent with naming used in other parts of the code. Moreover it better indicates we expect an xml id. On rating model: rename ``notif_layout`` parameter of ``rating_send_request`` to ``email_layout_xmlid``, for the same reasons as above. In various wizards: support ``email_layout_xmlid`` context key when no field is available, notably because this is still done manually in some wizards like survey invite. Keep a fallback on ``notif_layout`` but remove support of ``custom_layout`` deprecated since quite a long time. SPECIFICATIONS: ACCESS LINK Light template is used is several notification processes as an alternate layout to the classic one. It currently lacks any link to the document that generated the notifications. We add this behavior in this commit. Behavior is the same as the classic notification email, aka a link to mail/view that chooses what to do based on access rights and user status (internal, portal, ...). SPECIFICATIONS: MISC Remove ``mail_notification_borders`` as it is not used anymore. LINKS Task-2621326 (Mail: add 'view' button in 'light notification template') Task-2647302 (Mail: add layout field in composer
Gamification challenge pages now load more efficiently for companies with many users by showing participant counts instead of large user lists. The module files were also reorganized to make future maintenance easier, without changing the core business workflow.
Original PR description
PURPOSE
Gamification display is slow when being heavily used. Indeed the m2m towards
users is used in kanban and form views, leading to a huge data fetch when
being used in production environment with lots of users.
SPECIFICATIONS
Remove user_ids m2m from views. Indeed in some heavily used DBs you may have
more than 10K records in user_ids, leading to a huge m2m tags to display.
Replace it by an optimized count, used in
* form view: as a stat button redirecting to participants of a challenge;
* kanban view: a line (replacing the 11 first avatars) redirecting to
participants of a challenge;
Also of this commit is to rename and reorder views, data and models by main
model. It allows to better understand module organization and find views
one may have to update.
Task-2678295The SMS Marketing module icon was refreshed so it displays correctly in Odoo. This is a small visual cleanup that improves presentation without changing functionality.
Original PR description
mass_mailing_sms: text in svg icon wasn't flattened -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Timesheet Grid app icon has been updated so its image formats now match consistently. This improves visual consistency in the app listing and avoids confusion from mismatched branding.
Original PR description
timesheet_grid had a different icon for .png and .svg
Email notification layouts can now be selected and carried consistently through the message composer, reducing reliance on hidden context settings. This helps HR, payroll, planning, and signing workflows send clearer notification emails while preserving compatibility with existing behavior.
The Helpdesk dashboard has been reorganized to fit more naturally within the app layout, similar to the Lunch app. This improves usability and ensures the dashboard works better on mobile devices.
Original PR description
Purpose of the task is to refactor the helpdesk dashboard in order to have it as sibling element like in lunch app. also insure that it works well in mobile view too. TaskID: 2523259