Sugar 7.8.2.0 is not working this.model.get('field_name')

Hi All,

Sugar 7.8.2.0 is not working this.model.get('field_name').

custom/modules/Accounts/clients/base/views/record/record.js

console.log( this.model.get('website') + '---'); 

it's return "undefined".

/**
* @class View.Views.Base.Accounts.RecordView
* @alias SUGAR.App.view.views.BaseAccountsRecordView
* @extends View.Views.Base.RecordView
*/
({
     // CustomRecord View (base)

    extendsFrom: 'RecordView',

    /**
     * @inheritdoc
     */
    initialize: function(options) {
        this.plugins = _.union(this.plugins || [], ['HistoricalSummary']);
        this._super('initialize', [options]);
    },
    _render: function() {
        this._buildGridsFromPanelsMetadata(this.meta.panels);
        if (this.meta && this.meta.panels) {
            this._initTabsAndPanels();
        }

        app.view.View.prototype._render.call(this);

        if (this.context.get('record_label')) {
            this.setLabel(this.context, this.context.get('record_label'));
        }
        console.log('Asif call' + this.model.id);
     console.log( this.model.get('website') + '---');
       
        // Field labels in headerpane should be hidden on view but displayed in edit and create
        _.each(this.fields, function(field) {
            // some fields like 'favorite' is readonly by default, so we need to remove edit-link-wrapper
            if (field.def.readonly && field.name && -1 == _.indexOf(this.noEditFields, field.name)) {
                this.$('.record-edit-link-wrapper[data-name=' + field.name + ']').remove();
            }
        }, this);

        if (this.action === 'edit') {
            this.setButtonStates(this.STATE.EDIT);
            this.toggleEdit(true);
        } else {
            this.setButtonStates(this.STATE.VIEW);
            if (this.createMode) {
                this.toggleEdit(true);
            }
        }

        // initialize tab view only if the component is attached to DOM,
        // otherwise it's initialized partially and cannot be properly
        // re-initialized after the component is attached to DOM
        if ($.contains(document.documentElement, this.$el[0])) {
            this.handleActiveTab();
            this.overflowTabs();
        }
    },
})

Asif

Offshore Evolution Pvt. Ltd.

Francesca Shiekh Ramana Raju Santhana Hiren Darji