Hi, I'm trying to discharge an empty evaluation, that only has filled the default fields. I'm getting this error
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/modelview.py", line 672, in wrapper return func(cls, records, *args, **kwargs) File "/trytond/modules/health/health.py", line 5335, in end_evaluation cls.create_evaluation_pol (evaluation_id) File "/trytond/modules/health/health.py", line 5351, in create_evaluation_pol "P: " + evaluation.directions AttributeError: 'NoneType' object has no attribute 'rec_name' Fault: 'NoneType' object has no attribute 'rec_name' The rec_name is related to the main condition field on the evaluation. So I change this on ../health/health.py, line 5345, # Summarize the encounter note taking as SOAP soap = \ "S: " + evaluation.chief_complaint + "\n--\n" + \ evaluation.present_illness +"\n" + \ "O: " + evaluation.evaluation_summary + "\n" + \ "A: " + evaluation.diagnosis.rec_name + "\n" + \ "P: " + evaluation.directions For this to make it work diagnosis = (evaluation.diagnosis and evaluation.diagnosis.rec_name) or '' # Summarize the encounter note taking as SOAP soap = \ "S: " + evaluation.chief_complaint + "\n--\n" + \ evaluation.present_illness +"\n" + \ "O: " + evaluation.evaluation_summary + "\n" + \ "A: " + diagnosis + "\n" + \ "P: " + evaluation.directions Regards Francisco