From 07c2bd92daa4dec8f370ba824034713eab17fc8d Mon Sep 17 00:00:00 2001 From: foefl Date: Tue, 28 Jul 2026 09:45:28 +0200 Subject: [PATCH] adaptive validation for initial recording page --- src/wce_crm/gui.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/wce_crm/gui.py b/src/wce_crm/gui.py index b8204a5..1fc8a6e 100644 --- a/src/wce_crm/gui.py +++ b/src/wce_crm/gui.py @@ -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