[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Health-dev] [task #15435] 'NoneType' object has no attribute 'name'
From: |
Axel Braun |
Subject: |
[Health-dev] [task #15435] 'NoneType' object has no attribute 'name' |
Date: |
Thu, 31 Oct 2019 13:44:41 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
URL:
<https://savannah.gnu.org/task/?15435>
Summary: 'NoneType' object has no attribute 'name'
Project: GNU Health
Submitted by: coogor
Submitted on: Thu 31 Oct 2019 05:44:38 PM UTC
Should Start On: Thu 31 Oct 2019 12:00:00 AM UTC
Should be Finished on: Thu 31 Oct 2019 12:00:00 AM UTC
Category: Data model
Priority: 5 - Normal
Status: None
Privacy: Public
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: None
Module: health
_______________________________________________________
Details:
created a person with flag 'health professional'
created health professional and added speciality
save record:
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 828, 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 1896, in get_rec_name
return self.specialty.name
AttributeError: 'NoneType' object has no attribute 'name'
Fault: 'NoneType' object has no attribute 'name'
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/task/?15435>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Health-dev] [task #15435] 'NoneType' object has no attribute 'name',
Axel Braun <=