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] mass_mailing_custom_unsubscribe: portal user permissions #1571

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mail_composer_cc_bcc/models/mail_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,12 @@ def _send( # noqa: max-complexity: 4
{"state": "sent", "message_id": res, "failure_reason": False}
)
_logger.info(
"Mail with ID %r and Message-Id %r successfully sent",
"Mail with ID %r and Message-Id %r from %r to (redacted) %r "
"successfully sent",
mail.id,
mail.message_id,
tools.email_normalize(msg["from"]),
tools.mail.email_anonymize(tools.email_normalize(msg["to"])),
)
# /!\ can't use mail.state here, as mail.refresh() will cause an error
# see revid:[email protected] in 6.1
Expand Down
1 change: 1 addition & 0 deletions mail_composer_cc_bcc/tests/test_mail_cc_bcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"5d1ab352416f5074e131f35f20098d5b",
"46172c91183f2cb50b22a6b3b5e3869b",
"8f26c4084cc7fc300e64d19ccdc944fe",
"db6cc0d3513a0c85bd716e4cb0a4d09c",
]


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
read_unsubscription_reason_public,Public users can read unsubscription reasons,model_mail_unsubscription_reason,base.group_public,1,0,0,0
read_unsubscription_reason_portal,Portal users can read unsubscription reasons,model_mail_unsubscription_reason,base.group_portal,1,0,0,0
read_unsubscription_reason_employee,Employee users can read unsubscription reasons,model_mail_unsubscription_reason,base.group_user,1,0,0,0
write_unsubscription_reason,Mass mailing managers can manage unsubscription reasons,model_mail_unsubscription_reason,mass_mailing.group_mass_mailing_user,1,1,1,1
read_unsubscription,Marketing users can read unsubscriptions,model_mail_unsubscription,mass_mailing.group_mass_mailing_user,1,0,0,0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ tour.register(
test: true,
},
[
{
content: "Confirm unsubscribe",
trigger: "button:contains('Unsubscribe')",
},
{
content: "Choose other reason",
trigger: ".radio:contains('Other reason') :radio:not(:checked)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ tour.register(
test: true,
},
[
{
content: "Confirm unsubscribe",
trigger: "button:contains('Unsubscribe')",
},
{
content: "Choose other reason",
trigger: ".radio:contains('Other reason') :radio:not(:checked)",
Expand Down
Loading