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 1/2] 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() From 68b6fec847e735d5daee834593a2fea7a21f3bec Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Tue, 18 Aug 2015 13:50:36 +0700 Subject: [PATCH 2/2] should update usetime of dlz after finish treatment --- netforce_clinic/models/hd_case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netforce_clinic/models/hd_case.py b/netforce_clinic/models/hd_case.py index 0b3c44d..de83494 100644 --- a/netforce_clinic/models/hd_case.py +++ b/netforce_clinic/models/hd_case.py @@ -1079,7 +1079,7 @@ class HDCase(Model): def request_fee(self,ids,context={}): obj=self.browse(ids)[0] - #obj.update_usetime() + obj.update_usetime() obj.complete() # send some message to anyboby: patient return {