fix
parent
391721bb19
commit
89f38036d1
|
@ -314,8 +314,14 @@ class ClinicSetting(Model):
|
||||||
'staff_id': obj.staff_to_id.id,
|
'staff_id': obj.staff_to_id.id,
|
||||||
})
|
})
|
||||||
#del_staff=obj.staff_from_id.name
|
#del_staff=obj.staff_from_id.name
|
||||||
|
obj.staff_from_id.write({
|
||||||
|
'active': False,
|
||||||
|
})
|
||||||
|
obj.write({
|
||||||
|
'staff_from_id': None,
|
||||||
|
})
|
||||||
# delete staff
|
# delete staff
|
||||||
get_model('clinic.staff').delete([obj.staff_from_id.id])
|
#get_model('clinic.staff').delete([obj.staff_from_id.id])
|
||||||
print("Done!")
|
print("Done!")
|
||||||
|
|
||||||
def del_duplicate_staff(self,ids,context={}):
|
def del_duplicate_staff(self,ids,context={}):
|
||||||
|
|
Loading…
Reference in New Issue