From 3c8dbf0ad5ba2dff74d9848febdca69604243adc Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Thu, 14 Mar 2013 12:50:28 +0100 Subject: [PATCH] [FIX] Fixed infobox attrs bzr revid: fme@openerp.com-20130314115028-f2x6is15jmicaumc --- addons/auth_signup/res_users.py | 3 +-- addons/auth_signup/res_users_view.xml | 12 +++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/addons/auth_signup/res_users.py b/addons/auth_signup/res_users.py index e577482f33e..3c29788e1eb 100644 --- a/addons/auth_signup/res_users.py +++ b/addons/auth_signup/res_users.py @@ -161,7 +161,7 @@ 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 + res[user.id] = ('reset' if user.signup_valid and user.login_date else 'active' if user.login_date else 'new') return res @@ -169,7 +169,6 @@ class res_users(osv.Model): _columns = { 'state': fields.function(_get_state, string='Status', type='selection', selection=[('new', 'New'), ('active', 'Active'), ('reset', 'Resetting Password')]), - 'signup_url': fields.related('partner_id', 'signup_url', type='char', string='Reset password', readonly=True), } def signup(self, cr, uid, values, token=None, context=None): diff --git a/addons/auth_signup/res_users_view.xml b/addons/auth_signup/res_users_view.xml index cb1ba207c9a..4ff7ee7afc0 100644 --- a/addons/auth_signup/res_users_view.xml +++ b/addons/auth_signup/res_users_view.xml @@ -17,9 +17,15 @@
-
-

This user received a link in order to reset his password.

-

(this will log you out)

+
+

+ This user received the following link in order to reset his password. +

+

+ This user has been invited with the following link. +

+

(this link will log you out)

+