Hello,
I'm trying to adapt EspoCRM to day-by-day use of my agency.
I managed to create the fields I needed in the User and Team entities, it's working fine.
But I've tried to pack into installable extension and when I install result in error 404.
What did I forgot?
files/custom/Espo/Modules/MedyaWeightMod/Resources/i18n/en_US/Team.json
files/custom/Espo/Modules/MedyaWeightMod/Resources/i18n/en_US/User.json
files/custom/Espo/Modules/MedyaWeightMod/Resources/layouts/Team/detail.json
files/custom/Espo/Modules/MedyaWeightMod/Resources/layouts/Team/list.json
files/custom/Espo/Modules/MedyaWeightMod/Resources/layouts/Team/listSmall.json
files/custom/Espo/Modules/MedyaWeightMod/Resources/layouts/User/detail.json
files/custom/Espo/Modules/MedyaWeightMod/Resources/layouts/Team/list.json
files/custom/Espo/Modules/MedyaWeightMod/Resources/layouts/Team/listSmall.json
files/custom/Espo/Modules/MedyaWeightMod/Resources/metadata/entityDefs/Team.json
files/custom/Espo/Modules/MedyaWeightMod/Resources/metadata/entityDefs/Team.json
files/custom/Espo/Modules/MedyaWeightMod/Resources/metadata/scopes/Team.json
files/custom/Espo/Modules/MedyaWeightMod/Resources/metadata/scopes/User.json
files/custom/Espo/Modules/MedyaWeightMod/Resources/metadata/scopes/User.json
In the console of the container, I found this errors:
I'm trying to adapt EspoCRM to day-by-day use of my agency.
I managed to create the fields I needed in the User and Team entities, it's working fine.
But I've tried to pack into installable extension and when I install result in error 404.
What did I forgot?

files/custom/Espo/Modules/MedyaWeightMod/Resources/i18n/en_US/Team.json
Code:
{
"fields": {
"useWeightInOpportunitiesDistribution": "This team use Weight to distribute opportunitites?"
},
"tooltips": {
"useWeightInOpportunitiesDistribution": "Check if this team use weight of each user to distribute opportunities."
}
}
Code:
{
"fields": {
"weightInOpportunitiesDistribution": "Weight of this user in team to distribute opportunities"
},
"tooltips": {
"weightInOpportunitiesDistribution": "Fill a number between 0 and 100 representing the relevance of this user in opportunities' distribution."
}
}
files/custom/Espo/Modules/MedyaWeightMod/Resources/layouts/Team/detail.json
Code:
[
{
"rows": [
[
{
"name": "name"
},
{
"name": "useWeightInOpportunitiesDistribution"
}
],
[
{
"name": "roles"
},
{
"name": "positionList"
}
],
[
{
"name": "layoutSet"
},
false
]
],
"style": "default",
"label": ""
}
]
files/custom/Espo/Modules/MedyaWeightMod/Resources/layouts/Team/list.json
Code:
[
{
"name": "name",
"link": true
},
{
"name": "useWeightInOpportunitiesDistribution"
}
]
files/custom/Espo/Modules/MedyaWeightMod/Resources/layouts/Team/listSmall.json
Code:
[
{
"name": "name",
"link": true
},
{
"name": "useWeightInOpportunitiesDistribution"
}
]
files/custom/Espo/Modules/MedyaWeightMod/Resources/layouts/User/detail.json
Code:
[
{
"rows": [
[
{
"name": "userName"
},
{
"name": "weightInOpportunitiesDistribution"
}
],
[
{
"name": "name"
},
{
"name": "title"
}
],
[
{
"name": "emailAddress"
},
{
"name": "phoneNumber"
}
],
[
{
"name": "gender"
},
false
]
],
"style": "default",
"label": ""
}
]
files/custom/Espo/Modules/MedyaWeightMod/Resources/layouts/Team/list.json
Code:
[
{
"name": "name",
"link": true
},
{
"name": "userName",
"width": 20
},
{
"name": "title",
"width": 18
},
{
"name": "emailAddress",
"width": 20
},
{
"name": "isActive",
"width": 10
},
{
"name": "weightInOpportunitiesDistribution"
}
]
files/custom/Espo/Modules/MedyaWeightMod/Resources/layouts/Team/listSmall.json
Code:
[
{
"name": "name",
"link": true
},
{
"name": "userName",
"width": 30
},
{
"name": "emailAddress",
"width": 30
},
{
"name": "weightInOpportunitiesDistribution"
}
]
Code:
{
"fields": {
"useWeightInOpportunitiesDistribution": {
"notNull": true,
"type": "bool",
"audited": true,
"tooltip": true,
"isCustom": true
}
}
}
files/custom/Espo/Modules/MedyaWeightMod/Resources/metadata/entityDefs/Team.json
Code:
{
"fields": {
"weightInOpportunitiesDistribution": {
"type": "int",
"required": true,
"min": 0,
"max": 100,
"audited": true,
"tooltip": true,
"isCustom": true
}
}
}
files/custom/Espo/Modules/MedyaWeightMod/Resources/metadata/scopes/Team.json
Code:
{
"module": "MedyaWeightMod"
}
files/custom/Espo/Modules/MedyaWeightMod/Resources/metadata/scopes/User.json
Code:
{
"module": "MedyaWeightMod"
}
files/custom/Espo/Modules/MedyaWeightMod/Resources/metadata/scopes/User.json
Code:
{
"order": 50
}
In the console of the container, I found this errors:
Code:
172.20.0.2 - - [10/Nov/2022:06:23:50 +0000] "GET /client/custom/modules/medya-mods/src/controllers/team.js HTTP/1.1" 404 518 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" 172.20.0.2 - - [10/Nov/2022:06:18:50 +0000] "GET /client/custom/modules/medya-mods/src/controllers/team.js?r=1668060790 HTTP/1.1" 404 518 "https://unicesumar-criciuma.medyadigital.com.br/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36"

Comment