fixup! [IMP] web_widget_x2many_2d_matrix: New option field_att_<name>

This commit is contained in:
Holger Brunn
2018-10-25 15:44:52 +02:00
parent 55193f4151
commit 83c5a1df82

View File

@@ -45,7 +45,7 @@ openerp.web_widget_x2many_2d_matrix = function(instance)
this.field_label_y_axis = node.attrs.field_label_y_axis || this.field_y_axis;
this.field_value = node.attrs.field_value || this.field_value;
for (var property in node.attrs) {
if (property.startsWith("field_att_")) {
if (property.indexOf("field_att_") === 0) {
this.fields_att[property.substring(10)] = node.attrs[property];
}
}