diff --git a/netforce_clinic/models/hd_case.py b/netforce_clinic/models/hd_case.py index 1fc9e83..8ad1c6b 100644 --- a/netforce_clinic/models/hd_case.py +++ b/netforce_clinic/models/hd_case.py @@ -1083,7 +1083,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 { 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()