fix
parent
6b2e3b3da2
commit
01be234519
|
@ -1412,6 +1412,11 @@ class HDCase(Model):
|
||||||
'state': 'not_available',
|
'state': 'not_available',
|
||||||
})
|
})
|
||||||
set_active_user(user_id)
|
set_active_user(user_id)
|
||||||
|
if 'lines' in vals.keys():
|
||||||
|
if not vals['lines']:
|
||||||
|
print("lines is empty will update it now...")
|
||||||
|
patient_id=obj.patient_id.id
|
||||||
|
vals=self.get_staff_line(vals,patient_id)
|
||||||
self.function_store(ids)
|
self.function_store(ids)
|
||||||
super().write(ids,vals,**kw)
|
super().write(ids,vals,**kw)
|
||||||
obj=self.browse(ids)[0]
|
obj=self.browse(ids)[0]
|
||||||
|
|
|
@ -186,7 +186,7 @@ class Visit(Model):
|
||||||
}
|
}
|
||||||
|
|
||||||
st=get_model("clinic.setting").browse(1)
|
st=get_model("clinic.setting").browse(1)
|
||||||
if st.find_dlz:
|
if st.find_dlz and not obj.hd_cases: # force to remove
|
||||||
dialyzer=self.get_dlz(obj.id)
|
dialyzer=self.get_dlz(obj.id)
|
||||||
if dialyzer:
|
if dialyzer:
|
||||||
vals['dialyzers'].append(('create',dialyzer))
|
vals['dialyzers'].append(('create',dialyzer))
|
||||||
|
|
Loading…
Reference in New Issue