diff --git a/web_widget_x2many_2d_matrix/static/src/js/widget_x2many_2d_matrix.js b/web_widget_x2many_2d_matrix/static/src/js/widget_x2many_2d_matrix.js index f89db2d48..74ef902b5 100644 --- a/web_widget_x2many_2d_matrix/static/src/js/widget_x2many_2d_matrix.js +++ b/web_widget_x2many_2d_matrix/static/src/js/widget_x2many_2d_matrix.js @@ -59,17 +59,13 @@ odoo.define("web_widget_x2many_2d_matrix.widget", function (require) { ) ); } - this.show_row_totals = this.parse_boolean( - node.show_row_totals || + this.show_row_totals = Boolean( + this.parse_boolean(node.show_row_totals || "1") && this.is_aggregatable(field_defs[this.field_value]) - ? "1" - : "" ); - this.show_column_totals = this.parse_boolean( - node.show_column_totals || + this.show_column_totals = Boolean( + this.parse_boolean(node.show_column_totals || "1") && this.is_aggregatable(field_defs[this.field_value]) - ? "1" - : "" ); },