adaptive validation for initial recording page

This commit is contained in:
2026-07-28 09:45:28 +02:00
parent 2894d3a1a9
commit 07c2bd92da
+9 -3
View File
@@ -3500,9 +3500,9 @@ class Page_InitRec(QWidget):
pers_id=5,
)
ids = EntityIds(
link_id=7,
)
# ids = EntityIds(
# link_id=7,
# )
self.STATE.ids.update(ids, ignore_none=False)
if ids.empty():
@@ -3688,6 +3688,12 @@ class Page_InitRec(QWidget):
def validate(self) -> list[str]:
errors: list[str] = []
for m in self.STATE.child_modules:
if (
m.STATE.ent_type is EntityType.COMPANY
and self.STATE.recording_type is not RecordingType.WITH_COMPANY
):
continue
errors.extend(m.validate())
return errors