[FIX] res_users: update password on record user instead of recordset self

This commit is contained in:
Raphael Collet
2016-04-29 11:06:48 +02:00
parent efdc113a15
commit 45e2eee098
+1 -1
View File
@@ -248,7 +248,7 @@ class Users(models.Model):
# will face unexpected 'Access Denied' exceptions.
raise UserError(_('Please use the change password wizard (in User Preferences or User menu) to change your own password.'))
else:
self.password = self.new_password
user.password = user.new_password
@api.depends('groups_id')
def _compute_share(self):