tryton-sao 7.2.7 → 7.2.9
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 +10 -0
- package/dist/tryton-sao.js +13 -8
- package/package.json +1 -1
- package/src/model.js +10 -5
- package/src/sao.js +1 -1
- package/src/screen.js +2 -2
package/CHANGELOG
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
Version 7.2.9 - 2024-10-18
|
|
3
|
+
--------------------------
|
|
4
|
+
* Bug fixes (see mercurial logs for details)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Version 7.2.8 - 2024-10-05
|
|
8
|
+
--------------------------
|
|
9
|
+
* Bug fixes (see mercurial logs for details)
|
|
10
|
+
|
|
11
|
+
|
|
2
12
|
Version 7.2.7 - 2024-09-16
|
|
3
13
|
--------------------------
|
|
4
14
|
* Bug fixes (see mercurial logs for details)
|
package/dist/tryton-sao.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
/* eslint-disable no-redeclare */
|
|
5
5
|
var Sao = {
|
|
6
|
-
__version__: '7.2.
|
|
6
|
+
__version__: '7.2.9',
|
|
7
7
|
};
|
|
8
8
|
/* eslint-enable no-redeclare */
|
|
9
9
|
|
|
@@ -8271,12 +8271,16 @@ var Sao = {
|
|
|
8271
8271
|
}
|
|
8272
8272
|
return prm;
|
|
8273
8273
|
},
|
|
8274
|
-
reload: function(fields) {
|
|
8274
|
+
reload: function(fields, async=true) {
|
|
8275
8275
|
if (this.id < 0) {
|
|
8276
|
-
return jQuery.when();
|
|
8276
|
+
return async? jQuery.when() : null;
|
|
8277
8277
|
}
|
|
8278
8278
|
if (!fields) {
|
|
8279
|
-
return this.load('*');
|
|
8279
|
+
return this.load('*', async);
|
|
8280
|
+
} else if (!async) {
|
|
8281
|
+
for (let field of fields) {
|
|
8282
|
+
this.load(field, async);
|
|
8283
|
+
}
|
|
8280
8284
|
} else {
|
|
8281
8285
|
var prms = fields.map(field => this.load(field));
|
|
8282
8286
|
return jQuery.when.apply(jQuery, prms);
|
|
@@ -8970,6 +8974,7 @@ var Sao = {
|
|
|
8970
8974
|
return result;
|
|
8971
8975
|
};
|
|
8972
8976
|
if (sync) {
|
|
8977
|
+
this._check_load(fields, false);
|
|
8973
8978
|
return validate_fields();
|
|
8974
8979
|
} else {
|
|
8975
8980
|
return this._check_load(fields).then(validate_fields);
|
|
@@ -8993,9 +8998,9 @@ var Sao = {
|
|
|
8993
8998
|
this.links_counts = {};
|
|
8994
8999
|
this.exception = false;
|
|
8995
9000
|
},
|
|
8996
|
-
_check_load: function(fields) {
|
|
9001
|
+
_check_load: function(fields, async=true) {
|
|
8997
9002
|
if (!this.get_loaded(fields)) {
|
|
8998
|
-
return this.reload(fields);
|
|
9003
|
+
return this.reload(fields, async);
|
|
8999
9004
|
}
|
|
9000
9005
|
return jQuery.when();
|
|
9001
9006
|
},
|
|
@@ -13900,10 +13905,10 @@ var Sao = {
|
|
|
13900
13905
|
if (previous_view.view_type == 'calendar') {
|
|
13901
13906
|
previous_view.set_default_date(record, selected_date);
|
|
13902
13907
|
}
|
|
13903
|
-
this.display().
|
|
13908
|
+
return this.display().then(() => {
|
|
13904
13909
|
this.set_cursor(true, true);
|
|
13910
|
+
return record;
|
|
13905
13911
|
});
|
|
13906
|
-
return record;
|
|
13907
13912
|
});
|
|
13908
13913
|
});
|
|
13909
13914
|
},
|
package/package.json
CHANGED
package/src/model.js
CHANGED
|
@@ -633,12 +633,16 @@
|
|
|
633
633
|
}
|
|
634
634
|
return prm;
|
|
635
635
|
},
|
|
636
|
-
reload: function(fields) {
|
|
636
|
+
reload: function(fields, async=true) {
|
|
637
637
|
if (this.id < 0) {
|
|
638
|
-
return jQuery.when();
|
|
638
|
+
return async? jQuery.when() : null;
|
|
639
639
|
}
|
|
640
640
|
if (!fields) {
|
|
641
|
-
return this.load('*');
|
|
641
|
+
return this.load('*', async);
|
|
642
|
+
} else if (!async) {
|
|
643
|
+
for (let field of fields) {
|
|
644
|
+
this.load(field, async);
|
|
645
|
+
}
|
|
642
646
|
} else {
|
|
643
647
|
var prms = fields.map(field => this.load(field));
|
|
644
648
|
return jQuery.when.apply(jQuery, prms);
|
|
@@ -1332,6 +1336,7 @@
|
|
|
1332
1336
|
return result;
|
|
1333
1337
|
};
|
|
1334
1338
|
if (sync) {
|
|
1339
|
+
this._check_load(fields, false);
|
|
1335
1340
|
return validate_fields();
|
|
1336
1341
|
} else {
|
|
1337
1342
|
return this._check_load(fields).then(validate_fields);
|
|
@@ -1355,9 +1360,9 @@
|
|
|
1355
1360
|
this.links_counts = {};
|
|
1356
1361
|
this.exception = false;
|
|
1357
1362
|
},
|
|
1358
|
-
_check_load: function(fields) {
|
|
1363
|
+
_check_load: function(fields, async=true) {
|
|
1359
1364
|
if (!this.get_loaded(fields)) {
|
|
1360
|
-
return this.reload(fields);
|
|
1365
|
+
return this.reload(fields, async);
|
|
1361
1366
|
}
|
|
1362
1367
|
return jQuery.when();
|
|
1363
1368
|
},
|
package/src/sao.js
CHANGED
package/src/screen.js
CHANGED
|
@@ -1544,10 +1544,10 @@
|
|
|
1544
1544
|
if (previous_view.view_type == 'calendar') {
|
|
1545
1545
|
previous_view.set_default_date(record, selected_date);
|
|
1546
1546
|
}
|
|
1547
|
-
this.display().
|
|
1547
|
+
return this.display().then(() => {
|
|
1548
1548
|
this.set_cursor(true, true);
|
|
1549
|
+
return record;
|
|
1549
1550
|
});
|
|
1550
|
-
return record;
|
|
1551
1551
|
});
|
|
1552
1552
|
});
|
|
1553
1553
|
},
|