[FIX] mis_template_financial_report: feature parity with v12
This commit is contained in:
committed by
Geraldo Lopez
parent
d7b076542d
commit
cf82fd121d
@@ -2,42 +2,25 @@
|
||||
<template
|
||||
id="report_mis_report_instance"
|
||||
inherit_id="mis_builder.report_mis_report_instance"
|
||||
priority="9999"
|
||||
>
|
||||
<xpath expr="//div[hasclass('mis_table')]" position="attributes">
|
||||
<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">
|
||||
<t t-marker="unwrap">$0</t>
|
||||
<t t-marker="wrap_in_table">$0</t>
|
||||
</xpath>
|
||||
<xpath expr="//t[@t-marker='unwrap']" position="before">
|
||||
<xpath
|
||||
expr="//t[@t-marker='unwrap']/div[hasclass('mis_table')]"
|
||||
position="move"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath expr="//t[@t-marker='unwrap']" position="replace" />
|
||||
<xpath expr="//t[@t-marker='wrap_in_table']" position="after">
|
||||
<div t-if="o.horizontal" class="mis_builder_horizontal">
|
||||
<div>
|
||||
<div t-foreach="o._compute_horizontal_matrices()" t-as="matrix" />
|
||||
<xpath expr="//div[hasclass('mis_table')]" position="before">
|
||||
<div class="mis_builder_horizontal_container">
|
||||
<div class="mis_builder_horizontal_row">
|
||||
<div
|
||||
class="mis_builder_horizontal_cell"
|
||||
t-foreach="o.horizontal and o._split_matrix(matrix) or [matrix]"
|
||||
t-as="matrix"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="//div[hasclass('mis_builder_horizontal')]/div/div"
|
||||
position="inside"
|
||||
>
|
||||
<xpath expr="//t[@t-marker='wrap_in_table']/div" position="move" />
|
||||
<xpath expr="//div[hasclass('mis_builder_horizontal_cell')]" position="inside">
|
||||
<xpath expr="//div[hasclass('mis_table')]" position="move" />
|
||||
</xpath>
|
||||
<xpath expr="//t[@t-marker='wrap_in_table']" position="replace" />
|
||||
<xpath
|
||||
expr="//div[hasclass('mis_builder_horizontal')]//div[hasclass('mis_table')]"
|
||||
position="attributes"
|
||||
>
|
||||
<attribute name="t-if" />
|
||||
<xpath expr="//div[hasclass('mis_table')]" position="attributes">
|
||||
<attribute
|
||||
name="t-attf-class"
|
||||
>mis_table {{o.horizontal and 'horizontal'}}</attribute>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user