tryton-sao 7.0.32 → 7.0.33

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 7.0.33 - 2025-07-15
3
+ ---------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
2
7
  Version 7.0.32 - 2025-07-01
3
8
  ---------------------------
4
9
  * Bug fixes (see mercurial logs for details)
@@ -3,7 +3,7 @@
3
3
 
4
4
  /* eslint-disable no-redeclare */
5
5
  var Sao = {
6
- __version__: '7.0.32',
6
+ __version__: '7.0.33',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
@@ -22333,10 +22333,13 @@ function eval_pyson(value){
22333
22333
  }
22334
22334
  listener.on('click.sao.editabletree', handler);
22335
22335
 
22336
- Sao.View.Tree.RowEditable._super.select_row.call(this, event_);
22337
-
22338
- if (!event_.shiftKey && !(event_.ctrlKey || event_.metaKey)) {
22336
+ // do not call super when editing row because the selection must
22337
+ // not be changed
22338
+ if (!event_.shiftKey && !(event_.ctrlKey || event_.metaKey) &&
22339
+ (this.record === current_record)) {
22339
22340
  this.tree.edit_row(this);
22341
+ } else {
22342
+ Sao.View.Tree.RowEditable._super.select_row.call(this, event_);
22340
22343
  }
22341
22344
  },
22342
22345
  unset_editable: function() {
@@ -23309,6 +23312,7 @@ function eval_pyson(value){
23309
23312
  if (states.invisible || states.readonly) {
23310
23313
  return;
23311
23314
  }
23315
+ event.stopImmediatePropagation();
23312
23316
  button.el.prop('disabled', true); // state will be reset at display
23313
23317
  var row = this.view.rows.find(function(row) {
23314
23318
  return row.record == record;