contact role options reference

This commit is contained in:
Yuri Kuznetsov
2023-07-14 09:05:20 +03:00
parent e65583dba7
commit 60c8502d27
2 changed files with 2 additions and 8 deletions
@@ -239,7 +239,8 @@
"relationName": "contactOpportunity",
"nearKey": "opportunityId"
},
"view": "crm:views/opportunity/fields/contact-role"
"view": "crm:views/opportunity/fields/contact-role",
"optionsReference": "Contact.opportunityRole"
},
"createdAt": {
"type": "datetime",
@@ -31,12 +31,5 @@ define('crm:views/opportunity/fields/contact-role', ['views/fields/enum'], funct
return Dep.extend({
searchTypeList: ['anyOf', 'noneOf'],
setup: function () {
this.params.options = this.getMetadata().get('entityDefs.Contact.fields.opportunityRole.options');
this.params.translation = 'Contact.options.opportunityRole';
Dep.prototype.setup.call(this);
},
});
});