[RFR] l10n_nl_mis_reports -> mis_template_financial_report
This commit is contained in:
committed by
Geraldo Lopez
parent
2b279ca0a1
commit
de2c0857c1
@@ -0,0 +1,7 @@
|
||||
.oe_mis_builder_content div.mis_builder_horizontal {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
.oe_mis_builder_content div.mis_builder_horizontal .table {
|
||||
width: 50%;
|
||||
}
|
||||
11
mis_template_financial_report/static/src/css/report.css
Normal file
11
mis_template_financial_report/static/src/css/report.css
Normal file
@@ -0,0 +1,11 @@
|
||||
div.mis_builder_horizontal {
|
||||
display: table;
|
||||
width: 100%;
|
||||
}
|
||||
div.mis_builder_horizontal > div {
|
||||
display: table-row;
|
||||
}
|
||||
div.mis_builder_horizontal > div > div {
|
||||
display: table-cell;
|
||||
padding: 2px;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<t t-extend="MisReportWidgetTemplate">
|
||||
<t t-jquery="table.mis_builder">
|
||||
var $full_table = jQuery(this);
|
||||
var $wrapper = jQuery(
|
||||
'<div />'
|
||||
).addClass('mis_builder_horizontal').insertAfter($full_table);
|
||||
var $table = $full_table.clone().appendTo($wrapper);
|
||||
$table.attr({
|
||||
't-foreach': 'widget.mis_report_data.horizontal_matrices || []',
|
||||
't-as': 'matrix',
|
||||
});
|
||||
$table.find('tr[t-foreach="widget.mis_report_data.header"]').attr(
|
||||
't-foreach', 'matrix.header'
|
||||
);
|
||||
$table.find('tr[t-foreach="widget.mis_report_data.body"]').attr(
|
||||
't-foreach', 'matrix.body'
|
||||
);
|
||||
$full_table.attr('t-if', '!widget.mis_report_data.horizontal_matrices');
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
Reference in New Issue
Block a user