URL: <https://savannah.gnu.org/bugs/?64785>
Summary: Traceback when clearing the patient name on surgery Group: GNU Health Submitter: meanmicio Submitted: Tue 17 Oct 2023 01:54:11 PM UTC Category: Programming / Tracebacks Severity: 3 - Normal Item Group: None Status: Confirmed Privacy: Public Assigned to: meanmicio Open/Closed: Open Release: None Discussion Lock: Any Module: health_surgery Component: Hospital Management _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Tue 17 Oct 2023 01:54:11 PM UTC By: Luis Falcon <meanmicio> The following traceback is generated when clearing the patient name from the surgery. File "/trytond/model/modelview.py", line 88, in wrapper result = func(self, *args, **kwargs) File "/trytond/model/fields/field.py", line 123, in wrapper return func(self, *args, **kwargs) File "/trytond/modules/health_surgery/health_surgery.py", line 562, in on_change_patient self.gender = self.patient.gender AttributeError: 'NoneType' object has no attribute 'gender' Fault: 'NoneType' object has no attribute 'gender' _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?64785> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/