Browse Source

[IMP] show column totals in table footer

pull/96/head
Holger Brunn 10 years ago
parent
commit
eba96ff06a
  1. 10
      web_widget_x2many_2d_matrix/static/src/xml/web_widget_x2many_2d_matrix.xml

10
web_widget_x2many_2d_matrix/static/src/xml/web_widget_x2many_2d_matrix.xml

@ -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…
Cancel
Save