[FIX] revert remove password fp merge
Overriding the reset password meachnism should be done in auth signup/reset password addons. bzr revid: al@openerp.com-20121024111746-r94n1uqyb01a4x0m
This commit is contained in:
parent
0445d740a7
commit
aebe743964
|
@ -486,6 +486,13 @@ class res_users(osv.osv):
|
|||
'tag': 'reload',
|
||||
}
|
||||
|
||||
def preference_change_password(self, cr, uid, ids, context=None):
|
||||
return {
|
||||
'type': 'ir.actions.client',
|
||||
'tag': 'change_password',
|
||||
'target': 'new',
|
||||
}
|
||||
|
||||
def has_group(self, cr, uid, group_ext_id):
|
||||
"""Checks whether user belongs to given group.
|
||||
|
||||
|
|
|
@ -213,7 +213,8 @@
|
|||
<field name="signature" readonly="0"/>
|
||||
</group>
|
||||
<footer>
|
||||
<button name="preference_save" type="object" class="oe_highlight" string="Save"/>
|
||||
<button name="preference_change_password" type="object" string="Change password"/>
|
||||
<button name="preference_save" type="object" string="Save"/>
|
||||
or
|
||||
<button name="preference_cancel" string="Cancel" special="cancel" class="oe_link"/>
|
||||
</footer>
|
||||
|
|
Loading…
Reference in New Issue