use openerp style to display result

pull/86/head
laetitia.gangloff@acsone.eu 2014-07-23 16:13:19 +02:00 committed by Stéphane Bidoul
parent b6c2814772
commit 15449fcbbd
1 changed files with 31 additions and 21 deletions

View File

@ -1,29 +1,39 @@
<template> <template>
<t t-name="mis_builder.MisReport"> <t t-name="mis_builder.MisReport">
<p> </p> <p> </p>
<table t-if="widget.mis_report_data"> <table t-if="widget.mis_report_data" class="oe_list_content">
<th> <thead>
<td></td> <tr class="oe_list_header_columns">
<th t-foreach="widget.mis_report_data.cols" t-as="col" style="padding-right:10px"> <th class="oe_list_header_char"></th>
<t t-esc="col.name"/> <th t-foreach="widget.mis_report_data.cols" t-as="col" class="oe_list_header_char">
</th> <div>
</th> <t t-esc="col.name"/>
<tr t-foreach="widget.mis_report_data.rows" t-as="row"> </div>
<th> </th>
<t t-esc="row.description"/> </tr>
</th> </thead>
<td></td> <tbody>
<td t-foreach="widget.mis_report_data.cols" t-as="col" style="padding-right:10px"> <tr t-foreach="widget.mis_report_data.rows" t-as="row">
<t t-foreach="col.values" t-as="value"> <th>
<t t-if="value == row.name"> <div>
<t t-esc="value_value.val_r"/> <t t-esc="row.description"/>
<t t-if="value_value.val_c"> </div>
<t t-esc="value_value.val_c"/> </th>
<td t-foreach="widget.mis_report_data.cols" t-as="col">
<t t-foreach="col.values" t-as="value">
<t t-if="value == row.name">
<t t-esc="value_value.val_r"/>
</t> </t>
</t> </t>
</t> </td>
</td> </tr>
</tr> </tbody>
<tfoot>
<tr>
<td class="oe_list_footer" />
<td t-foreach="widget.mis_report_data.cols" class="oe_list_footer" />
</tr>
</tfoot>
</table> </table>
</t> </t>
</template> </template>