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