Force to always redraw the row of the clicked button

The display may not redraw the row and so reset the state of button if the
record has not be modified like with an action button.

issue10985
review367871002
This commit is contained in:
Cédric Krier committed 2021-11-28 13:50:40 +01:00
1 parent 7b5748fe14
commit 09e09c6fb0
1 file changed
+6
+6
View File
@@ -2708,6 +2708,12 @@
return;
}
button.el.prop('disabled', true); // state will be reset at display
var row = this.view.rows.find(function(row) {
return row.record == record;
});
if (row) {
row._drawed_record = null; // force redraw the row
}
this.view.screen.button(this.attributes);
}
});