can not create visit / hdcase

production
watcha.h 2015-10-15 12:42:27 +07:00
parent b9436c5990
commit 03770dc2c8
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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