Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Espo.define('Custom:Views.Quote.Record.Panels.Items', 'Views.Record.Panels.Bottom', function (Dep) {
- return Dep.extend({
- template: 'custom:quote.record.panels.items',
- getObjectRecords: function () {
- this.ajaxPostRequest('Quote/action/GetObjects', {
- objects: this.model.attributes.objektassNames
- }, {
- async:"false"
- }).then(function (attributes) {
- this.createView('items', 'custom:views/quote/record/panels/object', {
- objects: attributes
- }, function (view) {
- view.render();
- }.bind(this));
- });
- },
- data: function () {
- return this.getObjectRecords();
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment