bugGNU Health - Bugs: bug #63558, Fault: 'NoneType' object has no...

 
 

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

bug #63558: Fault: 'NoneType' object has no attribute 'name'

Submitter:  Mathias Behrle <yangoon>
Submitted:  Wed 21 Dec 2022 10:05:30 PM UTC
   
 
Category:  Programming / Tracebacks Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  meanmicio
Open/Closed:  Closed Release:  4.0.0
Module:  health_crypto Component:  Hospital Management

Thu 22 Dec 2022 11:56:21 AM UTC, comment #3: 


comment #2:

> Couldn't reproduce on demo server any more, thanks!

Great! We just updated the DB :)

Marking it as fixed :)

Luis Falcon <meanmicio>
Group administrator
Thu 22 Dec 2022 11:52:39 AM UTC, comment #2: 

Couldn't reproduce on demo server any more, thanks!

Mathias Behrle <yangoon>
Thu 22 Dec 2022 11:05:13 AM UTC, comment #1: 

Thanks, Mathias!

Fixed in https://hg.savannah.gnu.org/hgweb/health/rev/429f9d25eb96

It happens when the dose unit was not entered.

Please apply and report.

Bests,
Luiks

Luis Falcon <meanmicio>
Group administrator
Wed 21 Dec 2022 10:05:30 PM UTC, original submission:  

Opening a prescription on the demo server:

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 117, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 46, in rpc
    return methods.get(request.rpc_method, _dispatch)(
  File "/trytond/wsgi.py", line 84, in auth_required
    return wrapped(args, *kwargs)
  File "/trytond/protocols/wrappers.py", line 159, in wrapper
    return func(request, pool, args, *kwargs)
  File "/trytond/protocols/dispatcher.py", line 180, in _dispatch
    result = rpc.result(meth(c_args, *c_kwargs))
  File "/trytond/model/modelsql.py", line 870, in read
    getter_results = field.get(
  File "/trytond/model/fields/function.py", line 105, in get
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 105, in <genexpr>
    return dict((name, call(name)) for name in names)
  File "/trytond/model/fields/function.py", line 100, in call
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/model/fields/function.py", line 100, in <genexpr>
    return dict((r.id, method(r, name)) for r in records)
  File "/trytond/modules/health_crypto/health_crypto.py", line 164, in check_digest
    serial_doc = self.get_serial(self)
  File "/trytond/modules/health_crypto/health_crypto.py", line 128, in get_serial
    line.dose_unit.name or '',
AttributeError: 'NoneType' object has no attribute 'name'

Fault: 'NoneType' object has no attribute 'name'

Mathias Behrle <yangoon>

 

(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 yangoon (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-22 meanmicio StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2022-12-22 meanmicio CategoryNone Programming / Tracebacks
        StatusNone Ready For Test
        Assigned toNone meanmicio
        ReleaseNone 4.0.0
        ComponentNone Hospital Management

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code