From 03770dc2c805cc1b8a21093cba7f355f5fcb42c5 Mon Sep 17 00:00:00 2001 From: "watcha.h" Date: Thu, 15 Oct 2015 12:42:27 +0700 Subject: [PATCH] can not create visit / hdcase --- netforce_clinic/models/hd_case.py | 2 +- netforce_clinic/models/visit.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/netforce_clinic/models/hd_case.py b/netforce_clinic/models/hd_case.py index 00ae99c..54c046f 100644 --- a/netforce_clinic/models/hd_case.py +++ b/netforce_clinic/models/hd_case.py @@ -1509,7 +1509,7 @@ class HDCase(Model): }) vals=self.get_staff_line(vals,patient_id) vals=self.get_hct(vals,patient_id) - new_id=super().create(vals,context) + new_id=super().create(vals,context=context) self.function_store([new_id]) return new_id diff --git a/netforce_clinic/models/visit.py b/netforce_clinic/models/visit.py index 44851c2..fc9a2b3 100644 --- a/netforce_clinic/models/visit.py +++ b/netforce_clinic/models/visit.py @@ -206,7 +206,7 @@ class Visit(Model): hd_case.write(vals) hd_case_id=hd_case.id else: - hd_case_id=hd_case_obj.create(vals,context) + hd_case_id=hd_case_obj.create(vals,context=context) if context.get("called"): #XXX call outside return hd_case_id @@ -477,7 +477,7 @@ class Visit(Model): } def create(self, vals,context): - new_id=super().create(vals,context) + new_id=super().create(vals,context=context) self.function_store([new_id]) return new_id