mirror of https://github.com/OCA/web.git
[IMP] show column totals in table footer
parent
9370dc42fa
commit
082e00d396
|
@ -14,19 +14,21 @@
|
|||
<tbody>
|
||||
<tr t-foreach="widget.get_y_axis_values()" t-as="y">
|
||||
<th><t t-esc="widget.get_y_axis_label(y)" /></th>
|
||||
<td t-foreach="widget.get_x_axis_values()" t-as="x">
|
||||
<td t-foreach="widget.get_x_axis_values()" t-as="x" class="oe_list_field_cell">
|
||||
<span t-att-class="widget.get_xy_value_class()">
|
||||
<input t-att-data-x="x" t-att-data-y="y" t-att-data-id="widget.get_xy_id(x, y)" t-att-value="widget.format_xy_value(widget.get_xy_value(x, y))" />
|
||||
</span>
|
||||
</td>
|
||||
<td t-if="widget.show_row_totals" class="row_total" t-att-data-y="y"/>
|
||||
</tr>
|
||||
<tr t-if="widget.show_column_totals">
|
||||
</tbody>
|
||||
<tfoot t-if="widget.show_column_totals">
|
||||
<tr>
|
||||
<th>Total</th>
|
||||
<td t-foreach="widget.get_x_axis_values()" t-as="x" class="column_total" t-att-data-x="x" />
|
||||
<td t-foreach="widget.get_x_axis_values()" t-as="x" class="oe_list_footer oe_number column_total" t-att-data-x="x" />
|
||||
<td />
|
||||
</tr>
|
||||
</tbody>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</t>
|
||||
|
|
Loading…
Reference in New Issue