summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-10-05 15:55:10 +0200
committerGéry Debongnie <ged@odoo.com>2017-10-18 13:31:17 +0200
commit5b465611a009814ea1c70d967ce3dccca320f38c (patch)
treebee22370cb5cd234ded9d10d21b0a8829443dc1c /addons/web/static/src
parentf9d08ba5b956fce38636d5602f3937814540a77f (diff)
[REF] web: remove dead template/code/files
We sometimes need to clean up stuff. I am actually surprised that there were no more dead templates. We should do the same for css/less.
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/report/subst.js14
-rw-r--r--addons/web/static/src/js/services/core.js6
-rw-r--r--addons/web/static/src/js/views/list/list_renderer.js1
-rw-r--r--addons/web/static/src/xml/base.xml39
-rw-r--r--addons/web/static/src/xml/kanban.xml5
5 files changed, 0 insertions, 65 deletions
diff --git a/addons/web/static/src/js/report/subst.js b/addons/web/static/src/js/report/subst.js
deleted file mode 100644
index 076a5ff208a..00000000000
--- a/addons/web/static/src/js/report/subst.js
+++ /dev/null
@@ -1,14 +0,0 @@
-function subst() {
- var vars = {};
- var x = document.location.search.substring(1).split('&');
- for (var i in x) {
- var z = x[i].split('=', 2);
- vars[z[0]] = unescape(z[1]);
- }
- var x=['frompage', 'topage', 'page', 'webpage', 'section', 'subsection', 'subsubsection'];
- for (var i in x) {
- var y = document.getElementsByClassName(x[i]);
- for (var j=0; j<y.length; ++j)
- y[j].textContent = vars[x[i]];
- }
-}
diff --git a/addons/web/static/src/js/services/core.js b/addons/web/static/src/js/services/core.js
index 86937c0e2c5..f90b0e7c677 100644
--- a/addons/web/static/src/js/services/core.js
+++ b/addons/web/static/src/js/services/core.js
@@ -41,18 +41,12 @@ return {
// registries
action_registry : new Registry(),
crash_registry: new Registry(),
- form_custom_registry: new Registry(),
- form_tag_registry: new Registry(),
- form_widget_registry: new Registry(),
- list_widget_registry: new Registry(),
- one2many_view_registry: new Registry(),
search_filters_registry: new Registry(),
search_widgets_registry: new Registry(),
/**
* @type {String}
*/
csrf_token: odoo.csrf_token,
- a_thing: 42,
};
});
diff --git a/addons/web/static/src/js/views/list/list_renderer.js b/addons/web/static/src/js/views/list/list_renderer.js
index d37120339d6..2ccb3566a14 100644
--- a/addons/web/static/src/js/views/list/list_renderer.js
+++ b/addons/web/static/src/js/views/list/list_renderer.js
@@ -4,7 +4,6 @@ odoo.define('web.ListRenderer', function (require) {
var BasicRenderer = require('web.BasicRenderer');
var config = require('web.config');
var core = require('web.core');
-var Dialog = require('web.Dialog');
var dom = require('web.dom');
var field_utils = require('web.field_utils');
var Pager = require('web.Pager');
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index a4773488d30..bcb8e6e9265 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -363,41 +363,6 @@
</t>
</t>
-<div t-name="ListView" class="table-responsive">
- <table class="o_list_view table table-condensed table-striped">
- <t t-set="columns_count" t-value="visible_columns.length + (options.selectable ? 1 : 0) + (options.deletable ? 1 : 0)"/>
- <thead>
- <tr t-if="options.header">
- <t t-foreach="columns" t-as="column">
- <th t-if="column.meta">
- <t t-esc="column.string"/>
- </th>
- </t>
- <th t-if="options.selectable" class="o_list_record_selector" width="1">
- <div class="o_checkbox">
- <input type="checkbox"/><span/>
- </div>
- </th>
- <t t-foreach="columns" t-as="column">
- <th t-if="!column.meta and column.invisible !== '1'" t-att-data-id="column.id"
- t-attf-class="#{((options.sortable and column.sortable and column.tag !== 'button') ? 'o_column_sortable' : '')}"
- t-att-width="column.width()">
- <t t-if="column.tag !== 'button'"><t t-raw="column.heading()"/></t>
- </th>
- </t>
- <th t-if="options.deletable" class="o_list_record_delete"/>
- </tr>
- </thead>
- <tfoot>
- <tr>
- <td t-if="options.selectable"/>
- <td t-foreach="aggregate_columns" t-as="column" t-att-data-field="column.id" t-att-title="column.label">
- </td>
- <td t-if="options.deletable" class="o_list_record_delete"/>
- </tr>
- </tfoot>
- </table>
-</div>
<t t-name="ListView.buttons">
<div class="o_list_buttons">
<t t-if="widget.is_action_enabled('create')">
@@ -571,10 +536,6 @@
</p>
</div>
-<t t-name="Widget">
- Unhandled widget
- <t t-js="dict">console.warn('Unhandled widget', dict.widget);</t>
-</t>
<t t-name="FormSelection">
<div class="btn-group o_selection">
<a href="#" data-toggle="dropdown"><span class="o_status"/></a>
diff --git a/addons/web/static/src/xml/kanban.xml b/addons/web/static/src/xml/kanban.xml
index 1cf5e6d34ec..6cbc4d55942 100644
--- a/addons/web/static/src/xml/kanban.xml
+++ b/addons/web/static/src/xml/kanban.xml
@@ -72,11 +72,6 @@
<a href="#" t-att-data-color="color_index" t-attf-class="oe_kanban_color_#{color}"/>
</li>
</t>
-<t t-name="KanbanView.nocontent">
- <div class="oe_view_nocontent">
- <t t-raw="content"/>
- </div>
-</t>
<t t-name="GraphCustomTooltip">
<table>