[6282][IMP] mail_post_defer: consider force_send context#114
Open
smorita7749 wants to merge 2 commits into
Open
[6282][IMP] mail_post_defer: consider force_send context#114smorita7749 wants to merge 2 commits into
smorita7749 wants to merge 2 commits into
Conversation
Member
|
@smorita7749 Please update commit message and PR title so that it's clear what this update is about. |
83539e9 to
4e10637
Compare
Contributor
Author
|
I updated PR title and the background. |
Contributor
|
@smorita7749 Can you please add a test case about the new context by preparing the same workflow of sale order by calling |
Contributor
Author
I added a test case that calls message_post_with_template with force_send in the context, mirroring the sale order workflow. |
AungKoKoLin1997
approved these changes
Apr 22, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
6282
Standard Odoo modules (e.g. sale.order) use with_context(force_send=True) to request immediate email delivery. However, mail_post_defer was not checking force_send in context, causing these emails to be deferred unexpectedly. This change adds the context check so that force_send=True in context is properly considered.