tryton-sao 6.0.59 → 6.0.60

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.60 - 2025-05-15
3
+ ---------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
2
7
  Version 6.0.59 - 2025-05-02
3
8
  ---------------------------
4
9
  * Bug fixes (see mercurial logs for details)
@@ -10801,15 +10801,20 @@ var Sao = {};
10801
10801
  case 'ok':
10802
10802
  return this.save();
10803
10803
  case 'ko':
10804
- var record_id = this.screen.current_record.id;
10804
+ var record_id = null;
10805
+ if (this.screen.current_record) {
10806
+ record_id = this.screen.current_record.id;
10807
+ }
10805
10808
  return this.reload(false).then(function() {
10806
- if (record_id < 0) {
10807
- return jQuery.Deferred().reject(true);
10808
- }
10809
- else if (this.screen.current_record) {
10810
- if (record_id !=
10811
- this.screen.current_record.id) {
10812
- return jQuery.Deferred().reject();
10809
+ if (record_id !== null) {
10810
+ if (record_id < 0) {
10811
+ return jQuery.Deferred().reject(true);
10812
+ }
10813
+ else if (this.screen.current_record) {
10814
+ if (record_id !=
10815
+ this.screen.current_record.id) {
10816
+ return jQuery.Deferred().reject();
10817
+ }
10813
10818
  }
10814
10819
  }
10815
10820
  }.bind(this));
@@ -20154,7 +20159,8 @@ function eval_pyson(value){
20154
20159
  'class': 'btn btn-default btn-block',
20155
20160
  'type': 'button'
20156
20161
  }).text(Sao.i18n.gettext('More')
20157
- ).click(function() {
20162
+ ).one('click', function() {
20163
+ this.tbody.find('tr.more-row').remove();
20158
20164
  var height = this.table.height();
20159
20165
  this.display_size += Sao.config.display_size;
20160
20166
  this.display();