taskGNU Health - Tasks: task #15435, 'NoneType' object has no...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

task #15435: 'NoneType' object has no attribute 'name'

Submitter:  Axel Braun <coogor>
Submitted:  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:  Cancelled Privacy:  Public
Assigned to:  meanmicio Percent Complete:  0%
Open/Closed:  Closed Release:  3.5.0
Module:  health Component:  None

Fri 01 Nov 2019 09:01:03 AM UTC, comment #1: 
Luis Falcon <meanmicio>
Group administrator
Thu 31 Oct 2019 05:44:38 PM UTC, original submission:  

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'

Axel Braun <coogor>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by coogor (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-01 meanmicio StatusNone Cancelled
        Assigned toNone meanmicio
        Open/ClosedOpen Closed
        ReleaseNone 3.5.0

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code