-
-
Notifications
You must be signed in to change notification settings - Fork 626
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
base: 16.0
Are you sure you want to change the base?
Conversation
Hi @hailangvn2023, |
|
a98eb90
to
481b6d8
Compare
481b6d8
to
9bfe604
Compare
9bfe604
to
c28a54c
Compare
There was a problem hiding this 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: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
…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
1110603
to
4cbce87
Compare
4cbce87
to
15f7086
Compare
Note
https://github.com/OCA/social/issues/1263
https://github.com/OCA/social/pull/1309
https://github.com/OCA/social/pull/1310#issuecomment-2186838432
, which was not covered.17.0
: usingres.partner
insteadproduct.template
in test. Otherwise, tests cannot run because model product.template is not in environment.Result
mail_composer_cc_bcc_16.webm