-
-
Notifications
You must be signed in to change notification settings - Fork 615
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][REF] mail_show_follower: internal notes #1391
Conversation
Hi @yajo, |
Tests are failing because of |
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.
LGTM: code review
bca3372
to
0153eaf
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.
0153eaf
to
1819daf
Compare
This module aims to show the recipients of an email in the email header, but the previous implementation was not suitable for internal notes. When **logging an internal note** with tagged users and/or partners, those specific recipients should be displayed as well as the document's followers subscribed to this message subtype. When **sending an email**, the recipients should be the document's followers. This is achieved by using the union of `mail.mail`'s `recipient_ids` and `notified_partner_ids`.
1819daf
to
33cbb12
Compare
recipient_ids
@etobella I'm encountering issues with tests failing on
Any idea what could be the issue ? |
I think they made a change on the library. I will pin a version in order to avoid the issue. I will make it ASAP (tonight or tomorrow morning) |
Thank you @yajo for your additional review 🙏 . I'll handle it asap :) |
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.
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.
Code review OK.
@fcvalgar please update your functional review. The part you highlight in the Mailhog interface does not belong to this module. Instead, this module adds recipients info in the message body, and I cannot see any of that in the screenshot. Maybe it was not installed when you tried it?
This PR has the |
I think the behaviour is not as expected. The followers of the notes do not appear in the body of the message. |
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.
I've double-checked the functional test. All seems to be working fine.
As you can see here, if Marc Demo is subscribed to discussions and handles notifications in Odoo, he still appears in the CC list:
I create a new user with mail newuser@example.com and subscribe to that record's notes by email. I send an internal note:
Now I remove Marc Demo's subscription to notes and send another message:
There's no extra header. This was probably the case you triggered, @fcvalgar. IMHO it's OK because there are no more people subscribed, so that header wouldn't add much value.
So this seems like a functional improvement.
/ocabot merge minor
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 7f4afd9. Thanks a lot for contributing to OCA. ❤️ |
This module aims to show the recipients of a message in the email header, but the previous implementation was not suitable for internal notes.
When logging an internal note with tagged users and/or partners, those specific recipients should be displayed
as well as the document's followers subscribed to this message subtype.
When sending an email, the recipients should be the document's followers.
This is achieved by using the recipient of each notification line