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

[17.0][FIX] mail_composer_cc_bcc: fix duplicate key value error "unique_mail_message_id_res_partner_id_if_set" #1494

Open
wants to merge 4 commits into
base: 17.0
Choose a base branch
from

Conversation

trisdoan
Copy link
Contributor

@trisdoan trisdoan commented Nov 12, 2024

This changes

@trisdoan
Copy link
Contributor Author

trisdoan commented Nov 12, 2024

DRAFT: backport enhanced commit from 18.0

@trisdoan trisdoan marked this pull request as draft November 12, 2024 07:54
@trisdoan trisdoan marked this pull request as ready for review November 12, 2024 07:58
BryanSomko and others added 4 commits December 16, 2024 16:27
…onstraint "unique_mail_message_id_res_partner_id_if_set" when adding the same user to CC field that is already set as a follower
[IMP] mail_composer_cc_bcc: refactor _generate_template_recipients

1. Refactor _generate_template_recipients

2. Fix invalid-email-address for Bcc
   - In standard, Bcc key in dict message was stripped in
https://github.com/odoo/odoo/blob/4394940a09900aa5b42cbc05355880598608d1b6/odoo/addons/base/models/ir_mail_server.py#L676
   - Duplicate the key to retain for later assertion
@trisdoan trisdoan force-pushed the fix-17.0-mail_composer_cc_bcc branch from 1eb1f84 to a8e2dbd Compare December 16, 2024 09:27
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