diff --git a/netforce_clinic/models/hd_case.py b/netforce_clinic/models/hd_case.py index 0be8d2b..c32df7f 100644 --- a/netforce_clinic/models/hd_case.py +++ b/netforce_clinic/models/hd_case.py @@ -984,7 +984,7 @@ class HDCase(Model): dlz_id=get_model('clinic.dialyzer').create(dlz_vals) dialyzer=get_model("clinic.dialyzer").browse(dlz_id) - dialyzer.confirm() + dialyzer.validate() vals={ 'dlz_id': dlz_id, 'dialyzers': [], diff --git a/netforce_clinic/models/visit.py b/netforce_clinic/models/visit.py index 60ce7e8..1e4b59e 100644 --- a/netforce_clinic/models/visit.py +++ b/netforce_clinic/models/visit.py @@ -112,7 +112,7 @@ class Visit(Model): dlz_vals['department_id']=department_id dlz_id=get_model('clinic.dialyzer').create(dlz_vals) dialyzer=get_model("clinic.dialyzer").browse(dlz_id) - dialyzer.confirm() + dialyzer.validate() return dlz_id def get_dlz(self,visit_id):