Skip to content

Commit

Permalink
[MIG] mail_notification_custom_subject: migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-wichowski committed Apr 9, 2024
1 parent f7b15d4 commit fde4ba0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 26 deletions.
2 changes: 1 addition & 1 deletion mail_notification_custom_subject/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Mail Notification Custom Subject",
"summary": "Apply a custom subject to mail notifications",
"version": "15.0.1.0.2",
"version": "17.0.1.0.0",
"category": "Social Network",
"website": "https://github.com/OCA/social",
"author": "Tecnativa, Odoo Community Association (OCA)",
Expand Down

This file was deleted.

6 changes: 2 additions & 4 deletions mail_notification_custom_subject/models/mail_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ def message_post(
partner_ids=None,
attachments=None,
attachment_ids=None,
add_sign=True,
record_name=False,
body_is_html=False,
**kwargs,
):
if subtype_xmlid:
Expand Down Expand Up @@ -81,7 +80,6 @@ def message_post(
partner_ids=partner_ids,
attachments=attachments,
attachment_ids=attachment_ids,
add_sign=add_sign,
record_name=record_name,
body_is_html=body_is_html,
**kwargs,
)
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def test_email_subject_template_multi(self):
"name": "Test template 2",
"model_id": self.env.ref("base.model_res_partner").id,
"subtype_ids": [(6, 0, [self.env.ref("mail.mt_comment").id])],
"subject_template": "{{object.name or 'n/a'}} and something different",
"subject_template": "{{object.name or 'n/a'}} and "
"something different",
}
)
# Send message in partner
Expand Down

0 comments on commit fde4ba0

Please sign in to comment.