diff --git a/application/Espo/Modules/Crm/Resources/metadata/entityDefs/TargetList.json b/application/Espo/Modules/Crm/Resources/metadata/entityDefs/TargetList.json index 87bed7c3df..b9b9f627af 100644 --- a/application/Espo/Modules/Crm/Resources/metadata/entityDefs/TargetList.json +++ b/application/Espo/Modules/Crm/Resources/metadata/entityDefs/TargetList.json @@ -49,9 +49,6 @@ "type": "linkMultiple", "view": "views/fields/teams" }, - "campaigns": { - "type": "link" - }, "includingActionList": { "type": "multiEnum", "view": "crm:views/target-list/fields/including-action-list", @@ -78,6 +75,7 @@ "layoutListDisabled": true, "layoutDetailDisabled": true, "layoutMassUpdateDisabled": true, + "layoutFiltersDisabled": true, "exportDisabled": true, "importDisabled": true, "view": "crm:views/target-list/fields/target-status" @@ -89,6 +87,7 @@ "layoutListDisabled": true, "layoutDetailDisabled": true, "layoutMassUpdateDisabled": true, + "layoutFiltersDisabled": true, "exportDisabled": true, "importDisabled": true } @@ -115,22 +114,26 @@ "campaigns": { "type": "hasMany", "entity": "Campaign", - "foreign": "targetLists" + "foreign": "targetLists", + "layoutRelationshipsDisabled": true }, "massEmails": { "type": "hasMany", "entity": "MassEmail", - "foreign": "targetLists" + "foreign": "targetLists", + "layoutRelationshipsDisabled": true }, "campaignsExcluding": { "type": "hasMany", "entity": "Campaign", - "foreign": "excludingTargetLists" + "foreign": "excludingTargetLists", + "layoutRelationshipsDisabled": true }, "massEmailsExcluding": { "type": "hasMany", "entity": "MassEmail", - "foreign": "excludingTargetLists" + "foreign": "excludingTargetLists", + "layoutRelationshipsDisabled": true }, "accounts": { "type": "hasMany", diff --git a/application/Espo/Modules/Crm/Resources/metadata/scopes/TargetList.json b/application/Espo/Modules/Crm/Resources/metadata/scopes/TargetList.json index 623798d863..db0e6b7bcc 100644 --- a/application/Espo/Modules/Crm/Resources/metadata/scopes/TargetList.json +++ b/application/Espo/Modules/Crm/Resources/metadata/scopes/TargetList.json @@ -1,10 +1,10 @@ { "entity": true, - "layouts": false, + "layouts": true, "tab": true, "acl": true, "module": "Crm", - "customizable": false, + "customizable": true, "stream": false, "importable": false, "notifications": true,