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

[16.0][FIX] mail_composer_cc_bcc: fix duplicate key value error "unique_mail_message_id_res_partner_id_if_set" #1493

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

Conversation

trisdoan
Copy link
Contributor

@trisdoan trisdoan commented Nov 12, 2024

Note

Result

mail_composer_cc_bcc_16.webm

@OCA-git-bot
Copy link
Contributor

Hi @hailangvn2023,
some modules you are maintaining are being modified, check this out!

@trisdoan
Copy link
Contributor Author

trisdoan commented Nov 12, 2024

DRAFT: fix test

@trisdoan trisdoan force-pushed the 16.0-fix-mail_composer_cc_bcc branch 2 times, most recently from a98eb90 to 481b6d8 Compare December 10, 2024 10:20
@trisdoan trisdoan marked this pull request as ready for review December 10, 2024 10:24
@trisdoan trisdoan force-pushed the 16.0-fix-mail_composer_cc_bcc branch from 481b6d8 to 9bfe604 Compare December 16, 2024 02:05
@trisdoan trisdoan force-pushed the 16.0-fix-mail_composer_cc_bcc branch from 9bfe604 to c28a54c Compare December 17, 2024 02:00
Copy link
Member

@hbrunn hbrunn left a comment

Choose a reason for hiding this comment

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

please rebase, upstream mail.mail._send code seems to have changed again

cls.admin_user = cls.env.ref("base.user_admin")

def test_tracking_mail_without_cc_bcc(self):
if "purchase.order" in self.env:
Copy link
Member

Choose a reason for hiding this comment

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

please find a way to write this test without relying on models we don't have in the OCA CI run. Can't you test the same with ie users and the subtypes the mail module provides?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello @hbrunn, agreed, I just updated the test to mimic the flow

BryanSomko and others added 2 commits January 14, 2025 12:17
…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
@trisdoan trisdoan force-pushed the 16.0-fix-mail_composer_cc_bcc branch 2 times, most recently from 1110603 to 4cbce87 Compare January 14, 2025 05:25
@trisdoan trisdoan force-pushed the 16.0-fix-mail_composer_cc_bcc branch from 4cbce87 to 15f7086 Compare January 14, 2025 05:28
@trisdoan trisdoan requested a review from hbrunn January 14, 2025 05:34
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.

4 participants