summaryrefslogtreecommitdiff
path: root/addons/auth_reset_password
diff options
context:
space:
mode:
authorTwinkle Christian (OpenERP) <tch@tinyerp.com>2012-09-07 17:36:38 +0530
committerTwinkle Christian (OpenERP) <tch@tinyerp.com>2012-09-07 17:36:38 +0530
commite5a76cd41f7eba94c9cbc31e7e398773b9ce2bc4 (patch)
treefa09c961cbe765813194e73888ba61858f845adb /addons/auth_reset_password
parentcbd5cff60c3449c2d36ec2f193ddb9550578f476 (diff)
[IMP]Remove server warning
bzr revid: tch@tinyerp.com-20120907120638-0zeks1ildb1vy8w4
Diffstat (limited to 'addons/auth_reset_password')
-rw-r--r--addons/auth_reset_password/auth_reset_password.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/addons/auth_reset_password/auth_reset_password.py b/addons/auth_reset_password/auth_reset_password.py
index 40afbcaa4e6..c62c529fcdd 100644
--- a/addons/auth_reset_password/auth_reset_password.py
+++ b/addons/auth_reset_password/auth_reset_password.py
@@ -31,13 +31,8 @@ def message_check(msg, secret):
class res_users(osv.osv):
_inherit = 'res.users'
- _columns = {
- 'user_email': fields.related('email', type='char',
- deprecated='Use the email field instead of user_email. This field will be removed with OpenERP 7.1.')
- }
- _sql_constraints = [
- ('email_uniq', 'UNIQUE (user_email)', 'You can not have two users with the same email!')
- ]
+
+
def _auth_reset_password_secret(self, cr, uid, context=None):
uuid = self.pool.get('ir.config_parameter').get_param(cr, uid, 'database.uuid')