From 710cf121109f9a7db0b8edc16049ff5a4a12a4cb Mon Sep 17 00:00:00 2001
From: Jordan <jordan@le-filament.com>
Date: Fri, 3 Jul 2020 09:48:43 +0200
Subject: [PATCH] [delete] delete useless static
---
static/src/css/style.css | 3 ---
static/src/js/kanban_view.js | 22 ----------------------
static/src/js/tree_view.js | 19 -------------------
static/src/xml/templates.xml | 21 ---------------------
4 files changed, 65 deletions(-)
delete mode 100644 static/src/css/style.css
delete mode 100644 static/src/js/kanban_view.js
delete mode 100644 static/src/js/tree_view.js
delete mode 100644 static/src/xml/templates.xml
diff --git a/static/src/css/style.css b/static/src/css/style.css
deleted file mode 100644
index 44f1c83..0000000
--- a/static/src/css/style.css
+++ /dev/null
@@ -1,3 +0,0 @@
-.o_chatter .o_chatter_topbar > .o_topbar_right_area .o_chatter_button_attachment{
- display:none;
-}
\ No newline at end of file
diff --git a/static/src/js/kanban_view.js b/static/src/js/kanban_view.js
deleted file mode 100644
index c10efcd..0000000
--- a/static/src/js/kanban_view.js
+++ /dev/null
@@ -1,22 +0,0 @@
-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
diff --git a/static/src/js/tree_view.js b/static/src/js/tree_view.js
deleted file mode 100644
index ac30d04..0000000
--- a/static/src/js/tree_view.js
+++ /dev/null
@@ -1,19 +0,0 @@
-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
diff --git a/static/src/xml/templates.xml b/static/src/xml/templates.xml
deleted file mode 100644
index d3bd1ff..0000000
--- a/static/src/xml/templates.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?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
--
GitLab