[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.
This commit is contained in:
Géry Debongnie
2017-10-18 13:31:17 +02:00
parent f9d08ba5b9
commit 5b465611a0
5 changed files with 0 additions and 65 deletions
-14
View File
@@ -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]];
}
}
@@ -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,
};
});
@@ -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');
-39
View File
@@ -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>
-5
View File
@@ -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>