Mercurial > hgweb > health
changeset 5576:429f9d25eb96
health_crypto: Fix bug #63558: Fault: 'NoneType' object has no attribute 'name'
| author | Luis Falcon <falcon@gnuhealth.org> |
|---|---|
| date | Thu, 22 Dec 2022 11:03:05 +0000 |
| parents | 3279b74cccd7 |
| children | 7a606f43cc28 |
| files | tryton/health_crypto/health_crypto.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tryton/health_crypto/health_crypto.py +++ b/tryton/health_crypto/health_crypto.py @@ -111,7 +111,7 @@ line_elements = [line.medicament and line.medicament.name.name or '', line.dose or '', - line.dose_unit.name or '', + line.dose_unit and line.dose_unit.name or '', line.route and line.route.name or '', line.form and line.form.name or '', line.indication and line.indication.name or '',
