I have found an error on patient create, When I select a wrong third for the patient, and try to delete it in order on select a new one, an error appears related to looking gender. I guess "on_change_name
self.gender = self.name.gender" must valudate third selection.
Traceback (most recent call last):
File "/trytond/wsgi.py", line 47, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 41, in rpc
request, database_name, *request.rpc_params)
File "/trytond/wsgi.py", line 39, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 106, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 168, in _dispatch
result = rpc.result(meth(inst, *c_args, **c_kwargs))
File "/trytond/model/modelview.py", line 673, in on_change
method()
File "/trytond/model/modelview.py", line 82, in wrapper
result = func(self, *args, **kwargs)
File "/trytond/model/fields/field.py", line 101, in wrapper
return func(self, *args, **kwargs)
File "/trytond/modules/health/health.py", line 2809, in on_change_name
self.gender = self.name.gender
AttributeError: 'NoneType' object has no attribute 'gender'