[FIX] correctly handle Sub KPI in qweb report
parent
8f505c6595
commit
c6cd09c003
|
@ -10,23 +10,27 @@
|
||||||
<h2 t-field="o.name"></h2>
|
<h2 t-field="o.name"></h2>
|
||||||
<table class="table table-condensed">
|
<table class="table table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<t t-foreach="docs_computed[o.id]['header']" t-as="h">
|
||||||
<t t-foreach="docs_computed[o.id]['header']" t-as="h">
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<div>
|
<div>
|
||||||
<t t-esc="h_value['kpi_name']"/>
|
<t t-esc="h_value['kpi_name']"/>
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
<th t-foreach="h_value['cols']" t-as="col" class="text-center">
|
<t t-foreach="h_value['cols']" t-as="col">
|
||||||
<div>
|
<th class="text-center" t-att-colspan="col.get('colspan', 1)">
|
||||||
<t t-esc="col['name']"/>
|
<div>
|
||||||
</div>
|
<t t-esc="col['name']"/>
|
||||||
<div>
|
</div>
|
||||||
<t t-esc="col['date']"/>
|
<t t-if="col.get('date')">
|
||||||
</div>
|
<div>
|
||||||
</th>
|
<t t-esc="col['date']"/>
|
||||||
</t>
|
</div>
|
||||||
</tr>
|
</t>
|
||||||
|
</th>
|
||||||
|
</t>
|
||||||
|
</tr>
|
||||||
|
</t>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr t-foreach="docs_computed[o.id]['content']" t-as="c">
|
<tr t-foreach="docs_computed[o.id]['content']" t-as="c">
|
||||||
|
|
Loading…
Reference in New Issue