tryton-sao 7.6.16 → 7.6.17

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.6.17 - 2026-03-02
3
+ ---------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
2
7
  Version 7.6.16 - 2026-02-18
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.6.16',
6
+ __version__: '7.6.17',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
@@ -1369,13 +1369,13 @@ var Sao = {
1369
1369
  var modalZIndex = 1040;
1370
1370
  jQuery('.modal.in').each(function(index) {
1371
1371
  var $modal = jQuery(this);
1372
- modalZIndex++;
1372
+ modalZIndex += 10;
1373
1373
  $modal.css('zIndex', modalZIndex);
1374
- $modal.next('.modal-backdrop.in').addClass('hidden')
1375
- .css('zIndex', modalZIndex - 1);
1374
+ $modal.prev('.modal-backdrop.in').addClass('hidden')
1375
+ .css('zIndex', modalZIndex - 5);
1376
1376
  });
1377
1377
  jQuery('.modal.in:visible:last').focus()
1378
- .next('.modal-backdrop.in').removeClass('hidden');
1378
+ .prev('.modal-backdrop.in').removeClass('hidden');
1379
1379
  }
1380
1380
 
1381
1381
  }());
@@ -11767,7 +11767,9 @@ var Sao = {
11767
11767
  });
11768
11768
  },
11769
11769
  switch_: function() {
11770
- return this.modified_save().then(() => this.screen.switch_view());
11770
+ return this.modified_save().then(
11771
+ () => this.screen.switch_view(),
11772
+ (result) => result ? this.screen.switch_view() : null);
11771
11773
  },
11772
11774
  reload: function(test_modified=true) {
11773
11775
  const reload = () => {
@@ -11898,10 +11900,12 @@ var Sao = {
11898
11900
  revision = revisions[revisions.length - 1][0];
11899
11901
  }
11900
11902
  if (revision != this.screen.context._datetime) {
11901
- this.screen.clear();
11902
11903
  // Update group context that will be propagated by
11903
11904
  // recreating new group
11904
11905
  this.screen.group._context._datetime = revision;
11906
+ // clear after updating the datetime such that the tab
11907
+ // compute already the right URL
11908
+ this.screen.clear();
11905
11909
  if (this.screen.current_view.view_type != 'form') {
11906
11910
  this.screen.search_filter(
11907
11911
  this.screen.screen_container
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.16",
5
+ "version": "7.6.17",
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.16',
6
+ __version__: '7.6.17',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
@@ -1369,13 +1369,13 @@ var Sao = {
1369
1369
  var modalZIndex = 1040;
1370
1370
  jQuery('.modal.in').each(function(index) {
1371
1371
  var $modal = jQuery(this);
1372
- modalZIndex++;
1372
+ modalZIndex += 10;
1373
1373
  $modal.css('zIndex', modalZIndex);
1374
- $modal.next('.modal-backdrop.in').addClass('hidden')
1375
- .css('zIndex', modalZIndex - 1);
1374
+ $modal.prev('.modal-backdrop.in').addClass('hidden')
1375
+ .css('zIndex', modalZIndex - 5);
1376
1376
  });
1377
1377
  jQuery('.modal.in:visible:last').focus()
1378
- .next('.modal-backdrop.in').removeClass('hidden');
1378
+ .prev('.modal-backdrop.in').removeClass('hidden');
1379
1379
  }
1380
1380
 
1381
1381
  }());
package/src/tab.js CHANGED
@@ -922,7 +922,9 @@
922
922
  });
923
923
  },
924
924
  switch_: function() {
925
- return this.modified_save().then(() => this.screen.switch_view());
925
+ return this.modified_save().then(
926
+ () => this.screen.switch_view(),
927
+ (result) => result ? this.screen.switch_view() : null);
926
928
  },
927
929
  reload: function(test_modified=true) {
928
930
  const reload = () => {
@@ -1053,10 +1055,12 @@
1053
1055
  revision = revisions[revisions.length - 1][0];
1054
1056
  }
1055
1057
  if (revision != this.screen.context._datetime) {
1056
- this.screen.clear();
1057
1058
  // Update group context that will be propagated by
1058
1059
  // recreating new group
1059
1060
  this.screen.group._context._datetime = revision;
1061
+ // clear after updating the datetime such that the tab
1062
+ // compute already the right URL
1063
+ this.screen.clear();
1060
1064
  if (this.screen.current_view.view_type != 'form') {
1061
1065
  this.screen.search_filter(
1062
1066
  this.screen.screen_container