health-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health-dev] [bug #63275] Patient w/o DoB throws error message


From: Axel Braun
Subject: [Health-dev] [bug #63275] Patient w/o DoB throws error message
Date: Wed, 26 Oct 2022 07:53:04 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?63275>

                 Summary: Patient w/o DoB throws error message
                 Project: GNU Health
               Submitter: coogor
               Submitted: Wed 26 Oct 2022 11:53:01 AM UTC
                Category: Programming / Tracebacks
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: meanmicio
             Open/Closed: Open
                 Release: None
         Discussion Lock: Any
                  Module: health
               Component: Hospital Management


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 26 Oct 2022 11:53:01 AM UTC By: Axel Braun <coogor>
>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







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63275>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]