tryton-sao 7.6.3 → 7.6.5

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,14 @@
1
1
 
2
+ Version 7.6.5 - 2025-08-01
3
+ --------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
7
+ Version 7.6.4 - 2025-07-15
8
+ --------------------------
9
+ * Bug fixes (see mercurial logs for details)
10
+
11
+
2
12
  Version 7.6.3 - 2025-07-01
3
13
  --------------------------
4
14
  * 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.6.3',
6
+ __version__: '7.6.5',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
@@ -23218,11 +23218,13 @@ function eval_pyson(value){
23218
23218
  }
23219
23219
  listener.on('click.sao.editabletree', handler);
23220
23220
 
23221
- Sao.View.Tree.RowEditable._super.select_row.call(this, event_);
23222
-
23221
+ // do not call super when editing row because the selection must
23222
+ // not be changed
23223
23223
  if (!event_.shiftKey && !(event_.ctrlKey || event_.metaKey) &&
23224
23224
  (this.record === current_record)) {
23225
23225
  this.tree.edit_row(this);
23226
+ } else {
23227
+ Sao.View.Tree.RowEditable._super.select_row.call(this, event_);
23226
23228
  }
23227
23229
  },
23228
23230
  unset_editable: function() {
@@ -24195,6 +24197,7 @@ function eval_pyson(value){
24195
24197
  if (states.invisible || states.readonly) {
24196
24198
  return;
24197
24199
  }
24200
+ event.stopImmediatePropagation();
24198
24201
  button.el.prop('disabled', true); // state will be reset at display
24199
24202
  var row = this.view.rows.find(function(row) {
24200
24203
  return row.record == record;
@@ -27036,7 +27039,8 @@ function eval_pyson(value){
27036
27039
  },
27037
27040
  _get_fields: function(model) {
27038
27041
  return Sao.rpc({
27039
- 'method': 'model.' + model + '.fields_get'
27042
+ 'method': 'model.' + model + '.fields_get',
27043
+ 'params': [this.screen.context],
27040
27044
  }, this.session, false);
27041
27045
  },
27042
27046
  on_row_expanded: function(node) {
@@ -27395,7 +27399,7 @@ function eval_pyson(value){
27395
27399
  Sao.rpc({
27396
27400
  'method': 'model.' + this.screen.model_name +
27397
27401
  '.import_data',
27398
- 'params': [fields, data, {}]
27402
+ 'params': [fields, data, this.screen.context]
27399
27403
  }, this.session).then(count => {
27400
27404
  return Sao.common.message.run(
27401
27405
  Sao.i18n.ngettext('%1 record imported',
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "tryton-sao",
3
3
  "title": "sao",
4
4
  "description": "Tryton webclient",
5
- "version": "7.6.3",
5
+ "version": "7.6.5",
6
6
  "homepage": "https://www.tryton.org/",
7
7
  "author": {
8
8
  "name": "Tryton"
package/src/sao.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  /* eslint-disable no-redeclare */
5
5
  var Sao = {
6
- __version__: '7.6.3',
6
+ __version__: '7.6.5',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
package/src/view/tree.js CHANGED
@@ -2226,11 +2226,13 @@
2226
2226
  }
2227
2227
  listener.on('click.sao.editabletree', handler);
2228
2228
 
2229
- Sao.View.Tree.RowEditable._super.select_row.call(this, event_);
2230
-
2229
+ // do not call super when editing row because the selection must
2230
+ // not be changed
2231
2231
  if (!event_.shiftKey && !(event_.ctrlKey || event_.metaKey) &&
2232
2232
  (this.record === current_record)) {
2233
2233
  this.tree.edit_row(this);
2234
+ } else {
2235
+ Sao.View.Tree.RowEditable._super.select_row.call(this, event_);
2234
2236
  }
2235
2237
  },
2236
2238
  unset_editable: function() {
@@ -3203,6 +3205,7 @@
3203
3205
  if (states.invisible || states.readonly) {
3204
3206
  return;
3205
3207
  }
3208
+ event.stopImmediatePropagation();
3206
3209
  button.el.prop('disabled', true); // state will be reset at display
3207
3210
  var row = this.view.rows.find(function(row) {
3208
3211
  return row.record == record;
package/src/window.js CHANGED
@@ -1425,7 +1425,8 @@
1425
1425
  },
1426
1426
  _get_fields: function(model) {
1427
1427
  return Sao.rpc({
1428
- 'method': 'model.' + model + '.fields_get'
1428
+ 'method': 'model.' + model + '.fields_get',
1429
+ 'params': [this.screen.context],
1429
1430
  }, this.session, false);
1430
1431
  },
1431
1432
  on_row_expanded: function(node) {
@@ -1784,7 +1785,7 @@
1784
1785
  Sao.rpc({
1785
1786
  'method': 'model.' + this.screen.model_name +
1786
1787
  '.import_data',
1787
- 'params': [fields, data, {}]
1788
+ 'params': [fields, data, this.screen.context]
1788
1789
  }, this.session).then(count => {
1789
1790
  return Sao.common.message.run(
1790
1791
  Sao.i18n.ngettext('%1 record imported',