health-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health-dev] Error on create new patient


From: Carlos Eduardo Sotelo Pinto
Subject: [Health-dev] Error on create new patient
Date: Wed, 22 Nov 2017 22:37:18 -0500


​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
    Skype: csotelop
    GNULinux RU #379182 | GNULinux RM #277661

Please consider the environment before printing this email
Join the campaign at http://thinkBeforePrinting.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]