should not remove old doctor when change walkin type
parent
66e447c664
commit
68f505c89b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue