diff options
| author | Xavier-Do <xdo@odoo.com> | 2019-04-12 13:16:48 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-05-29 13:34:32 +0000 |
| commit | 2fcb3c658df3e504b92ff9b5a805d150cfa7effd (patch) | |
| tree | 211bc53b2593e3f165ea7831187ad96965e66538 /addons/gamification/models | |
| parent | 581a74143e9d215654b1988e2480c6516a3a4887 (diff) | |
[REF] mail: rename notif_layout to email_layout_xmlid on message model
Purpose is to make field use more obvious by correctly stating in the
name it should contain an xml id to a qweb layout used for email
notifications. This renaming is propagated through various calls and
addons.
Related to task 1943901
Linked to PR #32404
Diffstat (limited to 'addons/gamification/models')
| -rw-r--r-- | addons/gamification/models/challenge.py | 6 | ||||
| -rw-r--r-- | addons/gamification/models/goal.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/addons/gamification/models/challenge.py b/addons/gamification/models/challenge.py index c95e1f291d7..5e2515e797c 100644 --- a/addons/gamification/models/challenge.py +++ b/addons/gamification/models/challenge.py @@ -567,7 +567,7 @@ class Challenge(models.Model): body=body_html, partner_ids=challenge.mapped('user_ids.partner_id.id'), subtype='mail.mt_comment', - notif_layout='mail.mail_notification_light', + email_layout_xmlid='mail.mail_notification_light', ) if challenge.report_message_group_id: challenge.report_message_group_id.message_post( @@ -591,13 +591,13 @@ class Challenge(models.Model): body=body_html, partner_ids=[user.partner_id.id], subtype='mail.mt_comment', - notif_layout='mail.mail_notification_light', + email_layout_xmlid='mail.mail_notification_light', ) if challenge.report_message_group_id: challenge.report_message_group_id.message_post( body=body_html, subtype='mail.mt_comment', - notif_layout='mail.mail_notification_light', + email_layout_xmlid='mail.mail_notification_light', ) return challenge.write({'last_report_date': fields.Date.today()}) diff --git a/addons/gamification/models/goal.py b/addons/gamification/models/goal.py index 81e8616b316..c5a280f13f2 100644 --- a/addons/gamification/models/goal.py +++ b/addons/gamification/models/goal.py @@ -226,7 +226,7 @@ class Goal(models.Model): body=body_html, partner_ids=[self.user_id.partner_id.id], subtype='mail.mt_comment', - notif_layout='mail.mail_notification_light', + email_layout_xmlid='mail.mail_notification_light', ) return {'to_update': True} |
