'Change current user password. Old password must be provided explicitly
to prevent hijacking an existing user session, or for cases where the cleartext
password is not used to authenticate requests.
:return: True
:raise: odoo.exceptions.AccessDenied when old password is wrong
:raise: odoo.exceptions.UserError when new password is not set or empty'

@api.model
def change_password(self, old_passwd, new_passwd):

    self.check(self._cr.dbname, self._uid, old_passwd)
    if new_passwd:
        return self.env.user.write({'password': new_passwd})
    raise UserError(_('Setting    empty    passwords    is    not    allowed    for    security    reasons!'))
