bugGNU Health - Bugs: bug #63275, Patient w/o DoB throws error...

 
 

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

bug #63275: Patient w/o DoB throws error message

Submitter:  Axel Braun <coogor>
Submitted:  Wed 26 Oct 2022 11:53:01 AM 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_qrcodes Component:  Hospital Management

Tue 13 Dec 2022 09:54:57 PM UTC, comment #3: 


comment #2:

> Will this give an update to the 4.0 series?


Sure!

We'll include them in 4.0.5 and its patchset.

Bests

Luis Falcon <meanmicio>
Group administrator
Mon 12 Dec 2022 02:13:16 PM UTC, comment #2: 

Will this give an update to the 4.0 series?

Axel Braun <coogor>
Thu 27 Oct 2022 10:22:43 AM UTC, comment #1: 
Luis Falcon <meanmicio>
Group administrator
Wed 26 Oct 2022 11:53:01 AM UTC, original submission:  

From Appointment -> new appointment, new patient, new party, save party w/o DoB, save patient:


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_qrcodes/health_qrcodes.py", line 57, in make_qrcode
    f'DoB: {patient_dob}\n' \
UnboundLocalError: local variable 'patient_dob' referenced before assignment

Fault: local variable 'patient_dob' referenced before assignment

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 (Updated the item)
  • -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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-12 meanmicio Open/ClosedOpen Closed
    2022-12-12 meanmicio StatusReady For Test Fixed
    2022-10-27 meanmicio StatusConfirmed Ready For Test
    2022-10-27 meanmicio StatusNone Confirmed
        ReleaseNone 4.0.0
        Modulehealth health_qrcodes

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code