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'

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

Fri 01 Nov 2019 09:01:03 AM UTC, comment #1: 
Luis Falcon <meanmicio>
Project AdministratorIn charge of this item.
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>
Project Member

 

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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    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.7