Am Mittwoch, 26. Oktober 2022, 12:32:08 CEST schrieb Luis Falcon: > > Sidenote (@Luis): Party can be created w/o date of birth, which > > throws some error messages, but works in general > > Let us know the error :)
>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 I see that DoB may not be filled in some cases when creating a party, but maybe we make it mandatory? Cheers Axel