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']])
|
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()
|
||||||
|
|
Loading…
Reference in New Issue