Could not save preference with ldap authentication
When ldap_authentication is installed and we want to save user preferences, a crash occurs:
Here is the stacktrace:
Fault:
File "/trytond/wsgi.py", line 47, in dispatch_request\n return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 44, in rpc\n request, database_name, *request.rpc_params)
File "/trytond/wsgi.py", line 39, in auth_required\n return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 107, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 185, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/perf_analyzer.py", line 327, in wrap
ret = func(*args, **kwargs)
File "/trytond/modules/ldap_authentication/res.py", line 160, in set_preferences
super(User, cls).set_preferences(values, old_password=old_password)\nUnboundLocalError: local variable \'old_password\' referenced before assignment'>