diff options
| author | Thibault Delavallée <tde@odoo.com> | 2020-04-15 09:36:59 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-04-22 08:40:04 +0000 |
| commit | 42b5ec03845ecd5b31c0f9202cb4be47329bd240 (patch) | |
| tree | 555ef62bf4f87cfccdd1b7c39da19230ef8663ab /addons/sms | |
| parent | 7c3a0daaa1a2ed9c23267874842ca431819e0a10 (diff) | |
[LNT] mail: lint and reorder mail_notification files
In this commit we order fields more logically to ease reading and prepare
future modifications. We also rename the class and some field strings to
be more user friendly.
LINKS
Prepares Task ID 2238597 (clean notification models)
Prepares Task ID 2083854 (improve mass mailing technical flows)
PR #49891
Co-Authored-By: Rémy Voet <ryv@odoo.com>
Co-Authored-By: Thibault Delavallée <tde@odoo.com>
Diffstat (limited to 'addons/sms')
| -rw-r--r-- | addons/sms/models/mail_notification.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/sms/models/mail_notification.py b/addons/sms/models/mail_notification.py index 3e00399fcc3..5558527aac2 100644 --- a/addons/sms/models/mail_notification.py +++ b/addons/sms/models/mail_notification.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. -from odoo import api, fields, models -from odoo.tools.translate import _ +from odoo import fields, models -class Notification(models.Model): +class MailNotification(models.Model): _inherit = 'mail.notification' notification_type = fields.Selection(selection_add=[ |
