Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T1706 - Support request partner assignation #1950

Merged
merged 4 commits into from
Aug 22, 2024
Merged

Conversation

alexis-allemann
Copy link
Contributor

In Odoo, there are main contacts and "Linked partners" that have a different email address but are associated with the main contact. These linked partners are usually archived, meaning they don't appear in the lists.

When a sponsor sends an email using a secondary email address, the partner is matched and the related partner is identified. If the found partner is a secondary contact, it's preferable to link the support request to the main partner instead (because all history is maintained there). However, the secondary email address should still be used when replying to the sponsor in the support.

@alexis-allemann alexis-allemann self-assigned this Aug 20, 2024
Copy link

sonarcloud bot commented Aug 21, 2024

@ecino
Copy link
Member

ecino commented Aug 22, 2024

I can see the matching changes but not the "reply". Will it work and reply to the secondary email?

@alexis-allemann
Copy link
Contributor Author

alexis-allemann commented Aug 22, 2024

@ecino

I can see the matching changes but not the "reply". Will it work and reply to the secondary email?

Yes, the responses will indeed be sent to the email specified in the request. This is because the create method in crm_request/models/mail_mail.py overrides the email with the one provided in the context (specifically, the use_email_alias attribute). During the reply action in crm_request/models/request.py, you can see that this attribute is set using the email from the email_from attribute.

@ecino ecino merged commit 7f73bb3 into 14.0 Aug 22, 2024
1 of 2 checks passed
@ecino ecino deleted the T1706_support_request_partner branch August 22, 2024 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants