odoo-13.0/addons/web/static/src/js/views/view_dialogs.js
/**
     * Set the "remove" button into the options' buttons list
     *
     * @private
     * @param {Object} options The options object to modify
     * @param {string} btnClasses The classes for the remove button
     */
Set the "remove" button into the options' buttons list
@private
@param {Object} options The options object to modify
@param {string} btnClasses The classes for the remove button
Set the " remove " button into the options ' buttons list @private @param { Object } options The options object to modify @param { string } btnClasses The classes for the remove button
_setRemoveButtonOption(options, btnClasses) {
        const self = this;
        options.buttons.push({
            text: _t("Remove"),
            classes: 'btn-secondary ' + btnClasses,
            click: function() {
                self._remove().then(self.close.bind(self));
            }
        });
    }
_setRemoveButtonOption ( options , btnClasses ) { const self = this ; options . buttons . push ( { text : _t ( "Remove" ) , classes : 'btn-secondary ' + btnClasses , click : function ( ) { self . _remove ( ) . then ( self . close . bind ( self ) ) ; } } ) ; }
Set the "remove" button into the options' buttons list
 @private
 @param {Object} options The options object to modify
 @param {string} btnClasses The classes for the remove button
Set the " remove " button into the options ' buttons list @private @param { Object } options The options object to modify @param { string } btnClasses The classes for the remove button