Is it possible to add Tasks side panel to Product entity?
Add Tasks to Product entity
Collapse
X
-
Hello,
I think it is possible to do this by the following workaround:
Step 1, Create Relationship.
Administration >Entity Manager >Product>Relationships>Many-to-Many>Tasks, check the box 'Link Multiple Field';
Step 2, Add this field to the layout.
Administration >Entity Manager >Product>Layouts> Side Pannel Fields. -
Tips on your "standard way" request:
1. Create the file /custom/Espo/Custom/Resources/metadata/clientDefs/Product.json:
Code:{ "sidePanels": { "detail": [ { "name": "tasks", "label": "Tasks", "view": "crm:views/record/panels/tasks", "aclScope": "Task" } ] } }
Code:{ "fields": { //possible custom fields description }, "links": { "tasks": { "type": "hasChildren", "entity": "Task", "foreign": "parent", "layoutRelationshipsDisabled": true } } }
4. Reload a web page
Perhaps you will also need to open Administration -> Entity Manager -> Taks -> Relationship -> Children-to-Parent relationship -> Edit -> add Products to the Parent Entity Types scope/Comment
Comment