lead industry field

This commit is contained in:
yuri
2016-11-16 11:54:17 +02:00
parent 4e2e344892
commit c99a1261d5
5 changed files with 53 additions and 1 deletions
@@ -23,7 +23,8 @@
"createdOpportunity": "Opportunity",
"campaign": "Campaign",
"targetLists": "Target Lists",
"targetList": "Target List"
"targetList": "Target List",
"industry": "Industry"
},
"links": {
"targetLists": "Target Lists",
@@ -13,6 +13,7 @@
"rows": [
[{"name":"status"},{"name":"source"}],
[{"name":"opportunityAmount"},{"name":"campaign"}],
[false, {"name":"industry"}],
[{"name":"description", "fullWidth": true}]
]
}
@@ -8,6 +8,7 @@
"status",
"source",
"opportunityAmountConverted",
"industry",
"phoneNumber",
"targetLists",
"teams",
@@ -39,6 +39,13 @@
"options": ["", "Call", "Email", "Existing Customer", "Partner", "Public Relations", "Web Site", "Campaign", "Other"],
"default": ""
},
"industry": {
"type": "enum",
"view": "crm:views/lead/fields/industry",
"customizationOptionsDisabled": true,
"default": "",
"isSorted": true
},
"opportunityAmount": {
"type": "currency",
"audited": true
@@ -0,0 +1,42 @@
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2015 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
*
* EspoCRM is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* EspoCRM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with EspoCRM. If not, see http://www.gnu.org/licenses/.
*
* The interactive user interfaces in modified source and object code versions
* of this program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU General Public License version 3.
*
* In accordance with Section 7(b) of the GNU General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
Espo.define('crm:views/lead/fields/industry', 'views/fields/enum', function (Dep) {
return Dep.extend({
setup: function () {
this.params.options = this.getMetadata().get('entityDefs.Account.fields.industry.options');
this.params.translation = 'Account.options.industry';
Dep.prototype.setup.call(this);
}
});
});