health-dev
[Top][All Lists]
Advanced

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

[Health-dev] Error message: AttributeError: 'NoneType' object has no att


From: Armand MPASSY-NZOUMBA
Subject: [Health-dev] Error message: AttributeError: 'NoneType' object has no attribute 'gender'
Date: Sun, 28 Aug 2022 20:41:40 +0000 (UTC)

Dear Luis and all,
I get the following error message when trying to access the evaluation report.
Although all patient records have the gender attribute set.
May you assist?

When trying to access evaluation report


Traceback (most recent call last):

File "/trytond/wsgi.py", line 73, in dispatch_request

return endpoint(request, **request.view_args)

File "/trytond/protocols/dispatcher.py", line 46, in rpc

request, database_name, *request.rpc_params)

File "/trytond/wsgi.py", line 44, in auth_required

return wrapped(*args, **kwargs)

File "/trytond/protocols/wrappers.py", line 122, in wrapper

return func(request, pool, *args, **kwargs)

File "/trytond/protocols/dispatcher.py", line 176, in _dispatch

result = rpc.result(meth(*c_args, **c_kwargs))

File "/trytond/model/modelsql.py", line 830, in read

getter_results = field.get(ids, cls, field_list, values=result)

File "/trytond/model/fields/function.py", line 103, in get

return dict((name, call(name)) for name in names)

File "/trytond/model/fields/function.py", line 103, in <genexpr>

return dict((name, call(name)) for name in names)

File "/trytond/model/fields/function.py", line 98, in call

return dict((r.id, method(r, name)) for r in records)

File "/trytond/model/fields/function.py", line 98, in <genexpr>

return dict((r.id, method(r, name)) for r in records)

File "/trytond/modules/health/health.py", line 5107, in get_patient_gender

return self.patient.gender

AttributeError: 'NoneType' object has no attribute 'gender'




Kind regards

Armand



reply via email to

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