Skip to content

Commit

Permalink
Merge PR #1571 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Feb 4, 2025
2 parents 683a615 + 17e2d76 commit af1d0e9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
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

0 comments on commit af1d0e9

Please sign in to comment.