Friday, May 2, 2025
2 changes · master
Enhancements to existing features
This update adds reusable helper methods for handling HTML text, including escaping content, detecting empty HTML, and converting between HTML and plain text. It helps Odoo developers build and maintain text-related features more consistently, with limited direct impact on end users.
Original PR description
In the same spirit than other handy static methods on fields, like: * fields.Float.is_zero * fields.Float.compare * fields.Float.round * fields.Date.context_today * fields.Date.to_date * fields.Datetime.context_timestamp * fields.Datetime.to_datetime * ... This commit introduces the following static methods on the Html field: * Html.escape * Html.is_empty * Html.to_plaintext * Html.from_plaintext --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Managers and HR officers now receive cancellation emails with a direct "View Time Off" button. This makes it faster to open the cancelled request in Odoo and review the relevant details without searching manually.
Original PR description
When an approved Time Off Request (TOR) is canceled, the manager and/or HR officer is notified. Previously, the email template did not include a link to the TOR, making it difficult to navigate to it within Odoo. This PR improves the notification by using an email template that contains a "View Time Off" button, allowing managers and HR officers to easily navigate to the canceled leave. Task-4169798 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr