[FIX] mis_template_financial_report: feature parity with v12
This commit is contained in:
committed by
Geraldo Lopez
parent
d7b076542d
commit
cf82fd121d
@@ -367,7 +367,7 @@ ul.auto-toc {
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:ced5b0160af86207e009f52aac7844010df11f150873af1601845c0f0958ec23
|
||||
!! source digest: sha256:35e3ad836c47238b09fe511febcb806bafddc4699aedb0e224e55517c31128d0
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-reporting/tree/16.0/mis_template_financial_report"><img alt="OCA/account-financial-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-mis_template_financial_report"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This addon provides MIS builder templates to generate generic Profit & Loss and Balance Sheet reports.</p>
|
||||
@@ -401,6 +401,7 @@ This checkbox is only available for reports that support the horizontal mode.</p
|
||||
<h1><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h1>
|
||||
<ul class="simple">
|
||||
<li>support horizontal mode for xslx export</li>
|
||||
<li>split off all code to <cite>mis_builder_horizontal</cite> and only keep the KPI definitions here</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
.oe_mis_builder_content.horizontal {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
}
|
||||
.oe_mis_builder_content.horizontal .oe_mis_builder_cp {
|
||||
width: 100%;
|
||||
}
|
||||
.oe_mis_builder_content.horizontal .o_list_renderer {
|
||||
flex-grow: 1;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<templates>
|
||||
|
||||
<t t-inherit="mis_builder.MisReportWidget" t-inherit-mode="extension">
|
||||
<xpath expr="//div[hasclass('oe_mis_builder_content')]" position="attributes">
|
||||
<attribute
|
||||
name="t-attf-class"
|
||||
>{{state.mis_report_data.split_matrices and 'horizontal'}}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//table[hasclass('mis_builder')]/.." position="attributes">
|
||||
<attribute
|
||||
name="t-foreach"
|
||||
>state.mis_report_data.split_matrices or [state.mis_report_data]</attribute>
|
||||
<attribute name="t-as">matrix</attribute>
|
||||
<attribute name="t-key">matrix_index</attribute>
|
||||
</xpath>
|
||||
|
||||
<xpath
|
||||
expr="//tr[@t-foreach='state.mis_report_data.header']"
|
||||
position="attributes"
|
||||
>
|
||||
<attribute name="t-foreach">matrix.header</attribute>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="//tr[@t-foreach='state.mis_report_data.body']"
|
||||
position="attributes"
|
||||
>
|
||||
<attribute name="t-foreach">matrix.body</attribute>
|
||||
</xpath>
|
||||
</t>
|
||||
</templates>
|
||||
@@ -1,7 +0,0 @@
|
||||
.oe_mis_builder_content div.mis_builder_horizontal {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
}
|
||||
.oe_mis_builder_content div.mis_builder_horizontal .table {
|
||||
width: 50%;
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
div.mis_builder_horizontal {
|
||||
div.mis_builder_horizontal_container {
|
||||
display: table;
|
||||
width: 100%;
|
||||
border-spacing: 5px;
|
||||
}
|
||||
div.mis_builder_horizontal > div {
|
||||
div.mis_builder_horizontal_row {
|
||||
display: table-row;
|
||||
}
|
||||
div.mis_builder_horizontal > div > div {
|
||||
div.mis_builder_horizontal_cell {
|
||||
display: table-cell;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
<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