mirror of https://github.com/OCA/web.git
[IMP] web_widget_x2many_2d_matrix: center header cell
parent
f28cc849f4
commit
c3d5fdf82d
|
@ -4,7 +4,7 @@
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
{
|
{
|
||||||
'name': '2D matrix for x2many fields',
|
'name': '2D matrix for x2many fields',
|
||||||
'version': '12.0.1.0.2',
|
'version': '12.0.1.0.3',
|
||||||
'author': (
|
'author': (
|
||||||
'Therp BV, '
|
'Therp BV, '
|
||||||
'Tecnativa, '
|
'Tecnativa, '
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
.o_field_x2many_2d_matrix .row-total {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
|
@ -68,7 +68,8 @@ odoo.define('web_widget_x2many_2d_matrix.X2Many2dMatrixRenderer', function (requ
|
||||||
}
|
}
|
||||||
|
|
||||||
var $table = $('<table>').addClass(
|
var $table = $('<table>').addClass(
|
||||||
'o_list_view table table-condensed table-striped'
|
'o_list_view table table-condensed table-striped ' +
|
||||||
|
'o_x2many_2d_matrix '
|
||||||
);
|
);
|
||||||
this.$el
|
this.$el
|
||||||
.addClass('table-responsive')
|
.addClass('table-responsive')
|
||||||
|
@ -153,6 +154,8 @@ odoo.define('web_widget_x2many_2d_matrix.X2Many2dMatrixRenderer', function (requ
|
||||||
field.type === 'monetary'
|
field.type === 'monetary'
|
||||||
) {
|
) {
|
||||||
$th.addClass('text-right');
|
$th.addClass('text-right');
|
||||||
|
} else {
|
||||||
|
$th.addClass('text-center');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.debug) {
|
if (config.debug) {
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
.o_field_x2many_2d_matrix .row-total {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.o_x2many_2d_matrix {
|
||||||
|
thead > tr > th {
|
||||||
|
// Respect newline characters
|
||||||
|
white-space: pre-line;
|
||||||
|
}
|
||||||
|
}
|
|
@ -9,7 +9,7 @@
|
||||||
<script type="text/javascript" src="/web_widget_x2many_2d_matrix/static/src/js/2d_matrix_renderer.js" />
|
<script type="text/javascript" src="/web_widget_x2many_2d_matrix/static/src/js/2d_matrix_renderer.js" />
|
||||||
<script type="text/javascript" src="/web_widget_x2many_2d_matrix/static/src/js/widget_x2many_2d_matrix.js" />
|
<script type="text/javascript" src="/web_widget_x2many_2d_matrix/static/src/js/widget_x2many_2d_matrix.js" />
|
||||||
<script type="text/javascript" src="/web_widget_x2many_2d_matrix/static/src/js/abstract_view_matrix_limit_extend.js" />
|
<script type="text/javascript" src="/web_widget_x2many_2d_matrix/static/src/js/abstract_view_matrix_limit_extend.js" />
|
||||||
<link rel="stylesheet" href="/web_widget_x2many_2d_matrix/static/src/css/web_widget_x2many_2d_matrix.css"/>
|
<link rel="stylesheet" href="/web_widget_x2many_2d_matrix/static/src/scss/web_widget_x2many_2d_matrix.scss"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue