Monday, January 20, 2025
1 change · 18.0
Enhancements to existing features
Odoo notification emails are now more compact by hiding headers and footers unless they contain important access actions or are needed for key business documents. This reduces clutter in email threads, improves readability, and removes extra details such as the internal-email ribbon and sales order expiration date.
Original PR description
Email notifications typically include: 1) A header with elements such as an access button, title, or subtitle. 2) A footer with sender information and a "Powered by Odoo" link. While these elements…
Email notifications typically include: 1) A header with elements such as an access button, title, or subtitle. 2) A footer with sender information and a "Powered by Odoo" link. While these elements provide valuable context, they can clutter email threads, especially in interleaved responses. This commit introduces a dynamic mechanism to streamline email notifications by conditionally hiding the header and footer based on predefined criteria: By default, - The header will be displayed only if it contains an access button. - The footer will be displayed if it contains an access button and the email is sent from an internal user and if the email is a notification about an invoice, a Purchase order (PO) or a Sales order (SO). To ensure flexibility, new context variables are introduced: - `email_notification_allow_header`, `email_notification_allow_footer`: Enable or disable the conditional hiding mechanism. - `email_notification_force_header`, `email_notification_force_footer`: Force the display of the header and footer regardless of conditions. Additionally, the ribbon indicating that an email is internal has been removed to further simplify the layout. These updates reduce email size, improve readability in threaded conversations, and ensure that critical information is highlighted without unnecessary clutter. Task-4128966