From 68f505c89b527ce0b0e0f89fb8738290e34d555f Mon Sep 17 00:00:00 2001 From: "watcha.h@almacom.co.th" Date: Sat, 15 Aug 2015 21:51:17 +0700 Subject: [PATCH] should not remove old doctor when change walkin type --- netforce_clinic/models/patient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netforce_clinic/models/patient.py b/netforce_clinic/models/patient.py index f047da4..cb1730b 100644 --- a/netforce_clinic/models/patient.py +++ b/netforce_clinic/models/patient.py @@ -570,8 +570,8 @@ class Patient(Model): res=get_model('clinic.staff').search([['number','=','walkin'],['type','=','doctor']]) if res: data['doctor_id']=res[0] - else: - data['doctor_id']=None + #else: + #data['doctor_id']=None return data Patient.register()