[Top][All Lists]

[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 =" must valudate third selection.

Traceback (most recent call last):
  File "/trytond/", line 47, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/", line 41, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/", line 39, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/", line 106, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/", line 168, in _dispatch
    result = rpc.result(meth(inst, *c_args, **c_kwargs))
  File "/trytond/model/", line 673, in on_change
  File "/trytond/model/", line 82, in wrapper
    result = func(self, *args, **kwargs)
  File "/trytond/model/fields/", line 101, in wrapper
    return func(self, *args, **kwargs)
  File "/trytond/modules/health/", line 2809, in on_change_name
    self.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

reply via email to

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