From 71ba417a270f70f516a8345cfbe4f125a6d8520f Mon Sep 17 00:00:00 2001 From: bsiggel Date: Sat, 24 Jan 2026 00:07:47 +0100 Subject: [PATCH] Add validation script approval for Python-based rebuild; update CBankverbindungen entity to include contactsBankverbindung relation --- .vscode/settings.json | 4 ++++ .../Resources/metadata/entityDefs/CBankverbindungen.json | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 60130db0..068018b5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,6 +8,10 @@ "/^bash /var/lib/docker/volumes/vmh-espocrm_espocrm/_data/custom/scripts/check_and_rebuild\\.sh$/": { "approve": true, "matchCommandLine": true + }, + "/^python3 custom/scripts/validate_and_rebuild\\.py 2>&1 \\| tail -50$/": { + "approve": true, + "matchCommandLine": true } } } \ No newline at end of file diff --git a/custom/Espo/Custom/Resources/metadata/entityDefs/CBankverbindungen.json b/custom/Espo/Custom/Resources/metadata/entityDefs/CBankverbindungen.json index e11830a9..44ddf15c 100644 --- a/custom/Espo/Custom/Resources/metadata/entityDefs/CBankverbindungen.json +++ b/custom/Espo/Custom/Resources/metadata/entityDefs/CBankverbindungen.json @@ -123,6 +123,14 @@ "foreign": "bankverbindungens", "isCustom": true }, + "contactsBankverbindung": { + "type": "hasMany", + "relationName": "cBankverbindungContact", + "foreign": "cBankverbindungenContact", + "entity": "Contact", + "audited": false, + "isCustom": true + }, "createdBy": { "type": "belongsTo", "entity": "User"