summaryrefslogtreecommitdiff
path: root/addons/auth_signup/res_users_view.xml
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2013-03-14 12:50:28 +0100
committerFabien Meghazi <fme@openerp.com>2013-03-14 12:50:28 +0100
commit3c8dbf0ad5ba2dff74d9848febdca69604243adc (patch)
tree1c9be7f312b5b7cc7b63a3393a3701fcd2d86709 /addons/auth_signup/res_users_view.xml
parent38e9b66af9f2e7e62f212bb3b87fc183505e6621 (diff)
[FIX] Fixed infobox attrs
bzr revid: fme@openerp.com-20130314115028-f2x6is15jmicaumc
Diffstat (limited to 'addons/auth_signup/res_users_view.xml')
-rw-r--r--addons/auth_signup/res_users_view.xml12
1 files changed, 9 insertions, 3 deletions
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 @@
<header>
<field name="state" widget="statusbar"/>
</header>
- <div class="oe_form_box_info oe_text_center" attrs="{'invisible': [('state', '!=', 'reset')]}">
- <p><b>This user received a link in order to reset his password.</b></p>
- <p><field class="oe_inline" name="signup_url" widget="url" text="Click here to change the password by yourself."/> (this will log you out)</p>
+ <div class="oe_form_box_info oe_text_center" attrs="{'invisible': ['|', ('state', '!=', 'reset'), ('state', '!=', 'new'), ('signup_valid', '!=', True)]}">
+ <p attrs="{'invisible': [('state', '!=', 'reset')]}">
+ <b>This user received the following link in order to reset his password.</b>
+ </p>
+ <p attrs="{'invisible': ['|', ('state', '!=', 'new'), ('signup_valid', '!=', True)]}">
+ <b>This user has been invited with the following link.</b>
+ </p>
+ <p><field class="oe_inline" name="signup_url" widget="url"/> (this link will log you out)</p>
+ <field name="signup_valid" invisible="1"/>
</div>
</xpath>
<!-- add Reset Password button -->