summaryrefslogtreecommitdiff
path: root/addons/mail/models/res_users.py
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2016-08-09 16:17:17 +0200
committerThibault Delavallée <tde@openerp.com>2016-08-10 15:48:07 +0200
commitc8a313d51e57e9db52758a2c92c13044efef5a6a (patch)
tree5d213f21f33e815804206e36bf4f6c807a6a122c /addons/mail/models/res_users.py
parent5ce159924c235c06e4b1f6f653fe305932b83b5a (diff)
[IMP] various: use odoo for imports instead of openerp and update class names
Diffstat (limited to 'addons/mail/models/res_users.py')
-rw-r--r--addons/mail/models/res_users.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/mail/models/res_users.py b/addons/mail/models/res_users.py
index c5942457079..e188b9f9e75 100644
--- a/addons/mail/models/res_users.py
+++ b/addons/mail/models/res_users.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
-from openerp import _, api, fields, models
-import openerp
+from odoo import _, api, exceptions, fields, models
class Users(models.Model):
@@ -47,7 +47,7 @@ class Users(models.Model):
if not values.get('login', False):
action = self.env.ref('base.action_res_users')
msg = _("You cannot create a new user from here.\n To create new user please go to configuration panel.")
- raise openerp.exceptions.RedirectWarning(msg, action.id, _('Go to the configuration panel'))
+ raise exceptions.RedirectWarning(msg, action.id, _('Go to the configuration panel'))
user = super(Users, self).create(values)