Skip to content
Snippets Groups Projects
Commit 710cf121 authored by Jordan's avatar Jordan
Browse files

[delete] delete useless static

parent 10ac7a35
Branches
No related tags found
No related merge requests found
.o_chatter .o_chatter_topbar > .o_topbar_right_area .o_chatter_button_attachment{
display:none;
}
\ No newline at end of file
odoo.define('cgscop_base.KanbanControllerImport', function(require){
"use strict";
var KanbanController = require('web.KanbanController');
var core = require('web.core');
var qweb = core.qweb;
var KanbanControllerImport = KanbanController.include({
renderButtons: function ($node) {
if (this.hasButtons && (this.is_action_enabled('import') || this.is_action_enabled('create'))) {
this.$buttons = $(qweb.render('KanbanView.buttons', {
btnClass: 'btn-primary',
widget: this,
}));
this.$buttons.on('click', 'button.o-kanban-button-new', this._onButtonNew.bind(this));
this.$buttons.on('keydown',this._onButtonsKeyDown.bind(this));
this._updateButtons();
this.$buttons.appendTo($node);
}
},
});
});
\ No newline at end of file
odoo.define('cgscop_base.TreeviewImport', function(require) {
"use strict";
var AbstractView = require('web.AbstractView');
var TreeviewImport = AbstractView.include({
init: function (viewInfo, params) {
this._super(viewInfo, params);
if (this.arch.attrs.import == "False") {
this.controllerParams.activeActions['import'] = false;
} else {
this.controllerParams.activeActions['import'] = true;
}
},
});
return TreeviewImport;
});
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<templates id="cgscop_base_template" xml:space="preserve">
<t t-extend="ImportView.import_button">
<t t-jquery=".btn.btn-secondary.o_button_import" t-operation="replace"/>
</t>
<t t-name="ImportView.display_import_button">
<button t-if="widget and widget.is_action_enabled('import')" type="button" class="btn btn-secondary o_button_import">
Import
</button>
</t>
<t t-extend="ListView.buttons">
<t t-jquery=".o_list_buttons" t-operation="append">
<t t-call="ImportView.display_import_button"/>
</t>
</t>
</templates>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment