[14.0][FIX] widget_x2many_2d_matrix.js - fix show_column and show_row totals

This commit is contained in:
Enrique Martin Zabalza
2021-06-03 11:22:29 +02:00
parent ecf2a9b437
commit d0a6966958

View File

@@ -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"
: ""
);
},