tryton-sao 6.4.12 → 6.4.14
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 +15 -4
- package/dist/tryton-sao.min.js +2 -2
- package/package.json +1 -1
- package/src/model.js +6 -0
- package/src/sao.js +3 -1
- package/src/screen.js +3 -1
- package/src/view/form.js +1 -1
- package/src/window.js +2 -1
package/CHANGELOG
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
Version 6.4.14 - 2023-05-03
|
|
3
|
+
---------------------------
|
|
4
|
+
* Bug fixes (see mercurial logs for details)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Version 6.4.13 - 2023-04-01
|
|
8
|
+
---------------------------
|
|
9
|
+
* Bug fixes (see mercurial logs for details)
|
|
10
|
+
|
|
1
11
|
Version 6.4.12 - 2023-02-17
|
|
2
12
|
---------------------------
|
|
3
13
|
* Bug fixes (see mercurial logs for details)
|
package/dist/tryton-sao.js
CHANGED
|
@@ -507,7 +507,9 @@ var Sao = {};
|
|
|
507
507
|
}
|
|
508
508
|
try {
|
|
509
509
|
attributes.view_ids = loads(params.views || '[]');
|
|
510
|
-
|
|
510
|
+
if (params.limit !== undefined) {
|
|
511
|
+
attributes.limit = loads(params.limit || 'null');
|
|
512
|
+
}
|
|
511
513
|
attributes.name = loads(params.name || '""');
|
|
512
514
|
attributes.search_value = loads(params.search_value || '[]');
|
|
513
515
|
attributes.domain = loads(params.domain || '[]');
|
|
@@ -8930,6 +8932,12 @@ var Sao = {};
|
|
|
8930
8932
|
return value;
|
|
8931
8933
|
},
|
|
8932
8934
|
set_client: function(record, value, force_change) {
|
|
8935
|
+
if (value === null) {
|
|
8936
|
+
value = [];
|
|
8937
|
+
}
|
|
8938
|
+
if (typeof(value) == 'string') {
|
|
8939
|
+
value = [value];
|
|
8940
|
+
}
|
|
8933
8941
|
if (value) {
|
|
8934
8942
|
value = value.slice().sort();
|
|
8935
8943
|
}
|
|
@@ -13300,7 +13308,9 @@ var Sao = {};
|
|
|
13300
13308
|
}
|
|
13301
13309
|
const display = () => {
|
|
13302
13310
|
// Return the original promise to keep succeed/rejected state
|
|
13303
|
-
return this.display()
|
|
13311
|
+
return this.display()
|
|
13312
|
+
.always(() => this.record_saved())
|
|
13313
|
+
.then(() => prm, () => prm);
|
|
13304
13314
|
};
|
|
13305
13315
|
return prm.then(current_record => {
|
|
13306
13316
|
if (path && current_record && current_record.id) {
|
|
@@ -17628,7 +17638,7 @@ function eval_pyson(value){
|
|
|
17628
17638
|
var record = this.record;
|
|
17629
17639
|
var field_size = record.expr_eval(
|
|
17630
17640
|
this.attributes.size) || -1;
|
|
17631
|
-
field_size -= this.field.get_eval(record);
|
|
17641
|
+
field_size -= this.field.get_eval(record).length;
|
|
17632
17642
|
var win = new Sao.Window.Form(this.screen, update_sequence, {
|
|
17633
17643
|
new_: true,
|
|
17634
17644
|
many: field_size,
|
|
@@ -25774,7 +25784,8 @@ function eval_pyson(value){
|
|
|
25774
25784
|
} else {
|
|
25775
25785
|
domain = this.screen.search_domain(
|
|
25776
25786
|
this.screen.screen_container.get_text());
|
|
25777
|
-
if (!this.ignore_search_limit.prop('checked')
|
|
25787
|
+
if (!this.ignore_search_limit.prop('checked') &&
|
|
25788
|
+
this.screen.limit !== null) {
|
|
25778
25789
|
query_string.push(['s', this.screen.limit.toString()]);
|
|
25779
25790
|
query_string.push(
|
|
25780
25791
|
['p', Math.floor(
|