From c6174cdf652723668e36edebef0f024b26b87a0f Mon Sep 17 00:00:00 2001 From: Niko Aarnio Date: Fri, 21 Feb 2025 10:41:26 +0200 Subject: [PATCH] fix: make document name optional and remove name check --- arho_feature_template/gui/components/plan_document_widget.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arho_feature_template/gui/components/plan_document_widget.py b/arho_feature_template/gui/components/plan_document_widget.py index a9d4941..35c51f2 100644 --- a/arho_feature_template/gui/components/plan_document_widget.py +++ b/arho_feature_template/gui/components/plan_document_widget.py @@ -123,8 +123,7 @@ def __init__(self, document: Document, parent=None): def is_ok(self) -> bool: return ( - self.name.text() != "" - and self.document_type.value() is not None + self.document_type.value() is not None and self.publicity.value() is not None and self.language.value() is not None and self.retention_time.value() is not None