Hi Axel ! I think you wanted to file a bug instead of a task...
Can you please create the bug ? Thank you ! Luis On Thu, 31 Oct 2019 13:44:41 -0400 (EDT) Axel Braun <invalid.nore...@gnu.org> wrote: > 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/ > > -- Dr. Luis Falcon, M.D. President, GNU Solidario GNU Health: Freedom and Equity in Healthcare www.gnuhealth.org GPG Fingerprint :ACBF C80F C891 631C 68AA 8DC8 C015 E1AE 0098 9199 Join us at GNU Health Con 2019 https://www.gnuhealthcon.org