From ee85ee369b6819de2eafeef5cd50a714deb56bbc Mon Sep 17 00:00:00 2001 From: yuri Date: Wed, 12 Aug 2015 15:08:57 +0300 Subject: [PATCH] select document filter --- .../modules/crm/src/views/opportunity/detail.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/frontend/client/modules/crm/src/views/opportunity/detail.js b/frontend/client/modules/crm/src/views/opportunity/detail.js index 3f306e90f9..6f16441369 100644 --- a/frontend/client/modules/crm/src/views/opportunity/detail.js +++ b/frontend/client/modules/crm/src/views/opportunity/detail.js @@ -52,6 +52,21 @@ Espo.define('Crm:Views.Opportunity.Detail', 'Views.Detail', function (Dep) { }; } }, + }, + 'documents': { + 'accounts': function () { + var accountId = this.model.get('accountId'); + var nameHash = {}; + nameHash[accountId] = this.model.get('accountName'); + if (this.model.get('accountId')) { + return { + field: 'accounts', + type: 'linkedWith', + value: [accountId], + nameHash: nameHash + }; + } + }, }, },