Mercurial > hgweb > health
changeset 5424:b2a428fc8029
Fix bug #63275: Patient w/o DoB throws error message
| author | Luis Falcon <falcon@gnuhealth.org> |
|---|---|
| date | Thu, 27 Oct 2022 11:21:13 +0100 |
| parents | 21b580ac16fe |
| children | 847fdd6eea45 |
| files | tryton/health_qrcodes/health_qrcodes.py |
| diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tryton/health_qrcodes/health_qrcodes.py +++ b/tryton/health_qrcodes/health_qrcodes.py @@ -41,15 +41,13 @@ # Create the QR code patient_puid = self.puid or '' - patient_blood_type = self.blood_type or '' - patient_rh = self.rh or '' - patient_gender = self.gender or '' + patient_dob = '' if (self.dob): - patient_dob = str(self.dob) or '' + patient_dob = str(self.dob) qr_string = f'{patient_puid}\n' \ f'Name: {self.name.rec_name}\n' \
