tryton-sao 7.0.25 → 7.0.27

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.0.27 - 2025-04-02
3
+ ---------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
7
+ Version 7.0.26 - 2025-03-15
8
+ ---------------------------
9
+ * Bug fixes (see mercurial logs for details)
10
+
11
+
2
12
  Version 7.0.25 - 2025-03-04
3
13
  ---------------------------
4
14
  * Bug fixes (see mercurial logs for details)
package/COPYRIGHT CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2012-2024 Nicolas Évrard.
1
+ Copyright (C) 2012-2025 Nicolas Évrard.
2
2
  Copyright (C) 2012-2025 Cédric Krier.
3
3
  Copyright (C) 2012-2014 Bertrand Chenal.
4
4
  Copyright (C) 2012-2025 B2CK SPRL.
@@ -3,7 +3,7 @@
3
3
 
4
4
  /* eslint-disable no-redeclare */
5
5
  var Sao = {
6
- __version__: '7.0.25',
6
+ __version__: '7.0.27',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
@@ -1410,7 +1410,7 @@ var Sao = {
1410
1410
  }
1411
1411
  } else {
1412
1412
  Sao.common.error.run(data.error[0], data.error[1])
1413
- .always(dfd.reject);
1413
+ .always(() => dfd.reject(data.error));
1414
1414
  }
1415
1415
  } else {
1416
1416
  result = data.result;
@@ -20054,8 +20054,7 @@ function eval_pyson(value){
20054
20054
  return this._parse(this.format, this.input.val());
20055
20055
  },
20056
20056
  set_value: function(value) {
20057
- if ((value instanceof Sao.DateTime) ||
20058
- (value instanceof Sao.Date)) {
20057
+ if (value && (value.isDate || value.isDateTime)) {
20059
20058
  value = this._format(this.format, value);
20060
20059
  } else {
20061
20060
  value = '';
@@ -27484,7 +27483,10 @@ function eval_pyson(value){
27484
27483
  }
27485
27484
  this.__processing = false;
27486
27485
  }, result => {
27487
- // TODO end for server error.
27486
+ if (!result || !this.screen) {
27487
+ this.state = this.end_state;
27488
+ this.end();
27489
+ }
27488
27490
  this.__processing = false;
27489
27491
  });
27490
27492
  };