[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Health-dev] [bug #57148] 'NoneType' object has no attribute 'name'
From: |
Axel Braun |
Subject: |
[Health-dev] [bug #57148] 'NoneType' object has no attribute 'name' |
Date: |
Fri, 1 Nov 2019 04:32:21 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0 |
URL:
<https://savannah.gnu.org/bugs/?57148>
Summary: 'NoneType' object has no attribute 'name'
Project: GNU Health
Submitted by: coogor
Submitted on: Fri 01 Nov 2019 08:32:19 AM UTC
Category: Functionality
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
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/bugs/?57148>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Health-dev] [bug #57148] 'NoneType' object has no attribute 'name',
Axel Braun <=
- [Health-dev] [bug #57148] 'NoneType' object has no attribute 'name', Luis Falcon, 2019/11/01
- [Health-dev] [bug #57148] 'NoneType' object has no attribute 'name', Luis Falcon, 2019/11/01
- [Health-dev] [bug #57148] 'NoneType' object has no attribute 'name', Axel Braun, 2019/11/02
- [Health-dev] [bug #57148] 'NoneType' object has no attribute 'name', Luis Falcon, 2019/11/02
- [Health-dev] [bug #57148] 'NoneType' object has no attribute 'name', Axel Braun, 2019/11/02
- [Health-dev] [bug #57148] 'NoneType' object has no attribute 'name', Luis Falcon, 2019/11/02
- [Health-dev] [bug #57148] 'NoneType' object has no attribute 'name', Luis Falcon, 2019/11/02
- [Health-dev] [bug #57148] 'NoneType' object has no attribute 'name', Axel Braun, 2019/11/03
- [Health-dev] [bug #57148] 'NoneType' object has no attribute 'name', Luis Falcon, 2019/11/04