From b5ac788f7e0da464187dc581f4c03ba5cb201751 Mon Sep 17 00:00:00 2001 From: James Curtis Date: Thu, 2 Sep 2021 16:19:46 +0100 Subject: [PATCH] [FIX] TypeError when stopping observations New API method called without api decorator results with a '..takes exactly 2 arguments (4 given)' error Fixes #17589 --- nh_eobs/models/nh_clinical_patient_monitoring_exception.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nh_eobs/models/nh_clinical_patient_monitoring_exception.py b/nh_eobs/models/nh_clinical_patient_monitoring_exception.py index c25f13b0..f75cc73b 100644 --- a/nh_eobs/models/nh_clinical_patient_monitoring_exception.py +++ b/nh_eobs/models/nh_clinical_patient_monitoring_exception.py @@ -33,6 +33,7 @@ def start(self, activity_id): def complete(self, activity_id): return super(PatientMonitoringException, self).complete(activity_id) + @api.model def cancel(self, activity_id): return super(PatientMonitoringException, self).cancel(activity_id)