Repository navigation
[T3647] Double e-mails for new requests and Muskathlon registrations - #2202
Merged
Merged
Conversation
A request created by an incoming e-mail (website forms, e-mail aliases) whose alias sets a responsible sent that person two e-mails: Odoo's 'You have been assigned' notice and the incoming e-mail itself, which they receive as a follower. The notice is skipped for these requests; assigning a request by hand still sends it.
ecino
approved these changes
Nov 4, 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.
[T3647] Double e-mails for new requests and Muskathlon registrations
Branch
T3647-double-emails, based onorigin/18.0, in two repositories (independent, they can be merged in any order):33677b02No "assigned" e-mail for requests created by e-mail,2cb102camerge of the latest 18.013289e11Muskathlon: one e-mail per new registrationProblem
Requests
Every time a website form (e.g. "Ich will mithelfen") or an e-mail creates a request, its responsible receives two e-mails about the same request:
Muskathlon registrations
For each new Muskathlon registration, the event responsible receives two e-mails:
Cause
Requests
The website forms send an e-mail to an Odoo alias, which creates a
crm.claimrequest. 30 request aliases set a responsible in their defaults (user_id), among them all the website forms (participate, church visit, film, trips, newsletter…). Creating a record with a responsible is standard Odoo behaviour with two effects:mail.thread._message_auto_subscribe_notify);Muskathlon registrations
Every new event registration posts a one-line "New registration" note on its event, for the event's followers and responsible (
website_event_compassion,_notify_new_registration). For a Muskathlon,muskathlonalso posts the details e-mail on the registration, to the event's followers. The responsible follows the event, so they get both.Change
crm_request:crm.claim.message_new()creates the request withmail_auto_subscribe_no_notify. The responsible still follows the request and receives the incoming e-mail, which holds the details and the "View Request" button; the separate "assigned" notice is no longer sent for these requests. Assigning a request by hand (form, assign wizard) still sends the notice.muskathlon:Tests
crm_request/tests/test_request_notifications.py, through the mail gateway (message_process) on an alias with a responsible:muskathlon/tests/test_single_registration_email.py:Manual tests: a registration on a Muskathlon sent its responsible the details e-mail and the one-line event note before the fix, and only the details e-mail with it. An "Ich will mithelfen" e-mail delivered to the
site_de_participatealias created a request assigned to its responsible, who received a single e-mail (the form content with "View Request") and no "You have been assigned" e-mail.Not changed
Deploy
No
-uneeded (Python only); a restart is enough.🤖 Generated with Claude Code