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..9c14006 100644 --- a/netforce_clinic/models/visit.py +++ b/netforce_clinic/models/visit.py @@ -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