Browse Source

[IMP] show column totals in table footer

pull/871/head
Holger Brunn 10 years ago
committed by Simone Orsi
parent
commit
d545ae5412
  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> <tbody>
<tr t-foreach="widget.get_y_axis_values()" t-as="y"> <tr t-foreach="widget.get_y_axis_values()" t-as="y">
<th><t t-esc="widget.get_y_axis_label(y)" /></th> <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()"> <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))" /> <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> </span>
</td> </td>
<td t-if="widget.show_row_totals" class="row_total" t-att-data-y="y"/> <td t-if="widget.show_row_totals" class="row_total" t-att-data-y="y"/>
</tr> </tr>
<tr t-if="widget.show_column_totals">
</tbody>
<tfoot t-if="widget.show_column_totals">
<tr>
<th>Total</th> <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 /> <td />
</tr> </tr>
</tbody>
</tfoot>
</table> </table>
</div> </div>
</t> </t>

Loading…
Cancel
Save