Sunday, February 4, 2024
2 changes · 17.0
Resolved issues and error corrections
This fix corrects an issue where appraisal request emails were displaying broken links to employees. The problem occurred because the email template was being processed twice by the system, but the link wasn't being properly updated on the second pass. The fix ensures the link is correctly generated and functional when employees receive appraisal requests via email.
Original PR description
To reproduce
============
- Go to Appraisal select an employee and send by email
- the url in the email is wrong
Problem
=======
- the body of the request is rendered twice with qweb, but the template wasn't designed for that, as we have `t-att-href="ctx.get('url')"` that will be `href="ctx['url']"` after first render and expecting to be rendered again and replace `ctx['url']` with the real url but qweb has no way to know that without a `t-att-` prefix.
Solution
========
- before second render, add `t-att-` prefix to `href` so qweb will know that it should be rendered again and replace `ctx['url']` with the real url.
opw-3687928
Forward-Port-Of: odoo/enterprise#55780
Forward-Port-Of: odoo/enterprise#55464This fix resolves an issue where helpful tooltip information (like question mark icons) would not display when hovering with a mouse on devices that support touch input. The tooltip service was incorrectly clearing tooltips when the mouse was still over them on touch-capable devices. This ensures users can see helpful field information consistently across all device types.
Original PR description
Steps to reproduce
==================
- Use a laptop with touch or apply the following patch
```diff
diff --git a/addons/web/static/src/core/browser/feature_detection.js b/addons/web/static/src/core/browser/feature_detection.js
index 21c6294b1b0e..64c4bc9b899c 100644
--- a/addons/web/static/src/core/browser/feature_detection.js
+++ b/addons/web/static/src/core/browser/feature_detection.js
@@ -62,6 +62,7 @@ export function isDisplayStandalone() {
}
export function hasTouch() {
+ return true;
return browser.ontouchstart !== undefined || browser.matchMedia("(pointer:coarse)").matches;
}
```
- Enable debug mode
- Go to contacts
- Hover the mouse over a question mark next to a field
=> Nothing happens
Cause of the issue
==================
The function `shouldCleanup` returns true when the device has touch and the popover has been triggerd with the mouse
opw-3694156
Forward-Port-Of: odoo/odoo#151156