[RFR] l10n_nl_mis_reports -> mis_template_financial_report

This commit is contained in:
Stefan Rijnhart
2021-10-17 11:19:20 +02:00
committed by Geraldo Lopez
parent 2b279ca0a1
commit de2c0857c1
22 changed files with 902 additions and 0 deletions

View File

@@ -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%;
}

View 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;
}

View File

@@ -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>