Skip to content

[19.0][IMP] partner_event: prefer the attendee partner as default recipient - #548

Open
moylop260 wants to merge 1 commit into
OCA:19.0from
vauxoo-dev:19.0-partner-event-default-recipients-moy
Open

[19.0][IMP] partner_event: prefer the attendee partner as default recipient#548
moylop260 wants to merge 1 commit into
OCA:19.0from
vauxoo-dev:19.0-partner-event-default-recipients-moy

Conversation

@moylop260

Copy link
Copy Markdown

The generic default-recipient heuristics of mail pick partner_id, which is the person that made the booking, or fall back to the plain email typed in the registration. Mails composed from a registration (mail templates, the composer) are meant for the attendee, so when the module has resolved an attendee_partner_id this uses it as the default recipient instead.

When no attendee partner is resolved, the generic heuristics still apply unchanged.

The override keeps the with_cc/all_tos keyword arguments 19.0 declares on the original and delegates everything else to super().

@moylop260
moylop260 force-pushed the 19.0-partner-event-default-recipients-moy branch 3 times, most recently from 7802a7c to 6d4abc1 Compare August 30, 2026 20:04
@moylop260

moylop260 commented Aug 30, 2026

Copy link
Copy Markdown
Author

@moylop260
moylop260 marked this pull request as draft August 30, 2026 20:12
@moylop260
moylop260 marked this pull request as ready for review August 30, 2026 20:30

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there are extra default recipients, this will overwrite them. Can you just replace one by the other?

The generic default-recipient heuristics pick partner_id, which is the
person that made the booking, or fall back to the plain email typed in
the registration. Mails composed from a registration are meant for the
attendee, so when the module has resolved an attendee_partner_id use it
as the recipient instead.

Only that recipient is swapped inside the computed list, so any extra
partner contributed by another module is kept.
@moylop260
moylop260 force-pushed the 19.0-partner-event-default-recipients-moy branch from 6d4abc1 to 192d3b9 Compare September 7, 2026 04:31
@moylop260
moylop260 requested a review from pedrobaeza September 7, 2026 04:54
@moylop260

Copy link
Copy Markdown
Author

Good catch!
Thank you!

I have created the changes

Please, review

@pedrobaeza pedrobaeza added this to the 19.0 milestone Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants