diff --git a/addons/auth_signup/res_users.py b/addons/auth_signup/res_users.py
index 5553be78f63..8d717ece113 100644
--- a/addons/auth_signup/res_users.py
+++ b/addons/auth_signup/res_users.py
@@ -161,14 +161,12 @@ class res_users(osv.Model):
def _get_state(self, cr, uid, ids, name, arg, context=None):
res = {}
for user in self.browse(cr, uid, ids, context):
- res[user.id] = ('reset' if user.signup_valid else
- 'active' if user.login_date else
- 'new')
+ res[user.id] = ('active' if user.login_date else 'new')
return res
_columns = {
'state': fields.function(_get_state, string='Status', type='selection',
- selection=[('new', 'Never Connected'), ('active', 'Activated'), ('reset', 'Invitation Pending')]),
+ selection=[('new', 'Never Connected'), ('active', 'Activated')]),
}
def signup(self, cr, uid, values, token=None, context=None):
@@ -268,16 +266,7 @@ class res_users(osv.Model):
if mail_state and mail_state['state'] == 'exception':
raise osv.except_osv(_("Cannot send email: no outgoing email server configured.\nYou can configure it under Settings/General Settings."), user.name)
else:
- return {
- 'type': 'ir.actions.client',
- 'name': '_(Server Notification)',
- 'tag': 'action_notify',
- 'params': {
- 'title': 'Mail Sent to: %s' % user.name,
- 'text': 'You can reset the password by yourself using this link' % user.partner_id.signup_url,
- 'sticky': True,
- }
- }
+ return True
def create(self, cr, uid, values, context=None):
# overridden to automatically invite user to sign up
diff --git a/addons/auth_signup/res_users_view.xml b/addons/auth_signup/res_users_view.xml
index be9942feac2..6150a62ca2b 100644
--- a/addons/auth_signup/res_users_view.xml
+++ b/addons/auth_signup/res_users_view.xml
@@ -17,12 +17,26 @@
+ A password reset has been requested for this user. An email containing the following link has been sent: +
++ An invitation email containing the following subscription link has been sent: +
+