[RFR] mis_template_financial_report: make horizontal rendering optional

This commit is contained in:
Stefan Rijnhart
2021-10-19 10:50:51 +02:00
committed by Geraldo Lopez
parent 458475146d
commit eb46d97851
9 changed files with 160 additions and 27 deletions

View File

@@ -20,7 +20,7 @@
inherit_id="mis_builder.report_mis_report_instance"
>
<xpath expr="//div[hasclass('mis_table')]" position="attributes">
<attribute name="t-if">not o._is_horizontal()</attribute>
<attribute name="t-if">not o.horizontal</attribute>
</xpath>
<!-- the following is a somewhat convoluted way to duplicate the table /-->
<xpath expr="//div[hasclass('mis_table')]" position="replace">
@@ -35,7 +35,7 @@
</xpath>
<xpath expr="//t[@t-marker='unwrap']" position="replace" />
<xpath expr="//t[@t-marker='wrap_in_table']" position="after">
<div t-if="o._is_horizontal()" class="mis_builder_horizontal">
<div t-if="o.horizontal" class="mis_builder_horizontal">
<div>
<div t-foreach="o._compute_horizontal_matrices()" t-as="matrix" />
</div>