From 0ba6d86238fd0d558203aba1665986bcf9698153 Mon Sep 17 00:00:00 2001 From: James Curtis Date: Tue, 12 Jan 2021 13:03:25 +0000 Subject: [PATCH] [FIX] Fields should be required on EWS form Fixes #17004 --- nh_ews/ews.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nh_ews/ews.py b/nh_ews/ews.py index fb7d7488..f1bf3819 100644 --- a/nh_ews/ews.py +++ b/nh_ews/ews.py @@ -428,6 +428,7 @@ def _data2ews_ids(self, cr, uid, ids, context=None): 'selection_type': 'text', 'label': 'AVPU', 'initially_hidden': False, + 'required': True, }, { 'name': 'oxygen_administration_flag', @@ -436,6 +437,7 @@ def _data2ews_ids(self, cr, uid, ids, context=None): 'selection': [[False, 'No'], [True, 'Yes']], 'selection_type': 'boolean', 'initially_hidden': False, + 'required': True, 'on_change': [ { 'fields': ['device_id'],