From c438771deafdfc59c8931ca603bdf8710a23e2ed Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Tue, 10 Feb 2015 15:30:21 +0700 Subject: [PATCH] fix --- netforce_clinic/models/hd_case.py | 2 +- netforce_clinic/models/visit.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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):