Add CPuls entity and related resources
- Introduced a new entity "CPuls" with metadata definitions including fields, links, and indexes. - Updated existing JSON files to include "CPuls" in various contexts such as translations, entity definitions, and client definitions. - Added localization support for "CPuls" in multiple languages. - Modified existing files to accommodate the new entity in the application structure.
This commit is contained in:
37
custom/Espo/Custom/Resources/metadata/clientDefs/CPuls.json
Normal file
37
custom/Espo/Custom/Resources/metadata/clientDefs/CPuls.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"controller": "controllers/record",
|
||||
"boolFilterList": [
|
||||
"onlyMy"
|
||||
],
|
||||
"sidePanels": {
|
||||
"detail": [
|
||||
{
|
||||
"name": "activities",
|
||||
"reference": "activities"
|
||||
},
|
||||
{
|
||||
"name": "history",
|
||||
"reference": "history"
|
||||
},
|
||||
{
|
||||
"name": "tasks",
|
||||
"reference": "tasks"
|
||||
}
|
||||
]
|
||||
},
|
||||
"bottomPanels": {
|
||||
"detail": [
|
||||
{
|
||||
"name": "activities",
|
||||
"reference": "activities",
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"name": "history",
|
||||
"reference": "history",
|
||||
"disabled": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"iconClass": "fas fa-heart-pulse"
|
||||
}
|
||||
110
custom/Espo/Custom/Resources/metadata/entityDefs/CPuls.json
Normal file
110
custom/Espo/Custom/Resources/metadata/entityDefs/CPuls.json
Normal file
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"pattern": "$noBadCharacters"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user"
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "link",
|
||||
"required": false,
|
||||
"view": "views/fields/assigned-user"
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple",
|
||||
"view": "views/fields/teams"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"meetings": {
|
||||
"type": "hasMany",
|
||||
"entity": "Meeting",
|
||||
"foreign": "parent"
|
||||
},
|
||||
"calls": {
|
||||
"type": "hasMany",
|
||||
"entity": "Call",
|
||||
"foreign": "parent"
|
||||
},
|
||||
"tasks": {
|
||||
"type": "hasChildren",
|
||||
"entity": "Task",
|
||||
"foreign": "parent"
|
||||
},
|
||||
"emails": {
|
||||
"type": "hasChildren",
|
||||
"entity": "Email",
|
||||
"foreign": "parent",
|
||||
"layoutRelationshipsDisabled": true
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "createdAt",
|
||||
"order": "desc"
|
||||
},
|
||||
"indexes": {
|
||||
"name": {
|
||||
"columns": [
|
||||
"name",
|
||||
"deleted"
|
||||
]
|
||||
},
|
||||
"assignedUser": {
|
||||
"columns": [
|
||||
"assignedUserId",
|
||||
"deleted"
|
||||
]
|
||||
},
|
||||
"createdAt": {
|
||||
"columns": [
|
||||
"createdAt"
|
||||
]
|
||||
},
|
||||
"createdAtId": {
|
||||
"unique": true,
|
||||
"columns": [
|
||||
"createdAt",
|
||||
"id"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,8 @@
|
||||
"CBeteiligte",
|
||||
"CCallQueues",
|
||||
"CMietinkasso",
|
||||
"CKuendigung"
|
||||
"CKuendigung",
|
||||
"CPuls"
|
||||
]
|
||||
},
|
||||
"cWichtigkeit": {
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
"CBeteiligte",
|
||||
"CCallQueues",
|
||||
"CMietinkasso",
|
||||
"CKuendigung"
|
||||
"CKuendigung",
|
||||
"CPuls"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
"CBeteiligte",
|
||||
"CCallQueues",
|
||||
"CMietinkasso",
|
||||
"CKuendigung"
|
||||
"CKuendigung",
|
||||
"CPuls"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
"CBeteiligte",
|
||||
"CCallQueues",
|
||||
"CMietinkasso",
|
||||
"CKuendigung"
|
||||
"CKuendigung",
|
||||
"CPuls"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"duplicateWhereBuilderClassName": "Espo\\Classes\\DuplicateWhereBuilders\\General"
|
||||
}
|
||||
23
custom/Espo/Custom/Resources/metadata/scopes/CPuls.json
Normal file
23
custom/Espo/Custom/Resources/metadata/scopes/CPuls.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"entity": true,
|
||||
"layouts": true,
|
||||
"tab": true,
|
||||
"acl": true,
|
||||
"aclPortal": true,
|
||||
"aclPortalLevelList": [
|
||||
"all",
|
||||
"account",
|
||||
"contact",
|
||||
"own",
|
||||
"no"
|
||||
],
|
||||
"customizable": true,
|
||||
"importable": true,
|
||||
"notifications": true,
|
||||
"stream": true,
|
||||
"disabled": false,
|
||||
"type": "BasePlus",
|
||||
"module": "Custom",
|
||||
"object": true,
|
||||
"isCustom": true
|
||||
}
|
||||
Reference in New Issue
Block a user