[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Health-dev] Error message: AttributeError: 'NoneType' object has no
From: |
Luis Falcon |
Subject: |
Re: [Health-dev] Error message: AttributeError: 'NoneType' object has no attribute 'gender' |
Date: |
Wed, 31 Aug 2022 10:44:12 +0100 |
Dear Armand
On Sun, 28 Aug 2022 20:41:40 +0000 (UTC)
Armand MPASSY-NZOUMBA via Health-dev <health-dev@gnu.org> wrote:
> 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
>
> File"/trytond/modules/health/health.py", line 5107,
> inget_patient_gender
>
> returnself.patient.gender
>
> AttributeError:'NoneType' object has no attribute 'gender'
>
>
Thanks for reporting!
I can't reproduce it. Which GH HMIS version are you using?
It's indeed strange, because gender is a required field in the people
model.
I'll be willing to check your DB and get you a more precise response
from there.
All the best
Luis