​Dear community

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'

-- 
Carlos Eduardo Sotelo Pinto
    Agile Coach | Python Software Developer | Tryton ERP Consultant
    Claro RPC +51 989550602 <989%20550%20602>
    Skype: csotelop
    GNULinux RU #379182 | GNULinux RM #277661

*Please consider the environment before printing this email*

*Join the campaign at http://thinkBeforePrinting.org
<http://thinkBeforePrinting.org>*

Reply via email to