should not remove old doctor when change walkin type

fix_acc
watcha.h@almacom.co.th 2015-08-15 21:51:17 +07:00
parent 66e447c664
commit 68f505c89b
1 changed files with 2 additions and 2 deletions

View File

@ -570,8 +570,8 @@ class Patient(Model):
res=get_model('clinic.staff').search([['number','=','walkin'],['type','=','doctor']]) res=get_model('clinic.staff').search([['number','=','walkin'],['type','=','doctor']])
if res: if res:
data['doctor_id']=res[0] data['doctor_id']=res[0]
else: #else:
data['doctor_id']=None #data['doctor_id']=None
return data return data
Patient.register() Patient.register()