generated from dopt-python/py311
Dev #7
+9
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user