tryton-sao 6.0.62 → 6.0.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ Version 6.0.63 - 2025-07-15
3
+ ---------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
2
7
  Version 6.0.62 - 2025-07-01
3
8
  ---------------------------
4
9
  * Bug fixes (see mercurial logs for details)
@@ -21253,10 +21253,13 @@ function eval_pyson(value){
21253
21253
  }
21254
21254
  listener.on('click.sao.editabletree', handler);
21255
21255
 
21256
- Sao.View.Tree.RowEditable._super.select_row.call(this, event_);
21257
-
21258
- if (!event_.shiftKey && !(event_.ctrlKey || event_.metaKey)) {
21256
+ // do not call super when editing row because the selection must
21257
+ // not be changed
21258
+ if (!event_.shiftKey && !(event_.ctrlKey || event_.metaKey) &&
21259
+ (this.record === current_record)) {
21259
21260
  this.tree.edit_row(this);
21261
+ } else {
21262
+ Sao.View.Tree.RowEditable._super.select_row.call(this, event_);
21260
21263
  }
21261
21264
  },
21262
21265
  unset_editable: function() {
@@ -22092,6 +22095,7 @@ function eval_pyson(value){
22092
22095
  if (states.invisible || states.readonly) {
22093
22096
  return;
22094
22097
  }
22098
+ event.stopImmediatePropagation();
22095
22099
  button.el.prop('disabled', true); // state will be reset at display
22096
22100
  var row = this.view.rows.find(function(row) {
22097
22101
  return row.record == record;