Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] mail: use minimal context when rendering mail-related QWeb temp…
…lates Use option recently introduced to use a minimal context when rendering some mail templates such as * notification template used to decorate messages sent to recipient when using email-based notifications; * user assignation template used when people are assigned on a record and a notification is sent to inbox or email; * message_post_with_template now uses minimal context meaning calls to that method should be sure evaluation context is correctly set in the given values; This optimization allows to save some queries every time one of those template is used, meaning all tests gain between 1 to 4 queries depending on their complexity. This commit is related to task ID 1817951. Closes #23291 .
- Loading branch information
1 parent
42a4b54
commit 2826edc
Showing
3 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters