conv_bal
watcha.h@almacom.co.th 2015-06-29 11:51:56 +07:00
parent 391721bb19
commit 89f38036d1
1 changed files with 7 additions and 1 deletions

View File

@ -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={}):