tryton-sao 6.4.13 → 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 +5 -0
- package/dist/tryton-sao.js +12 -3
- 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/view/form.js +1 -1
- package/src/window.js +2 -1
package/CHANGELOG
CHANGED
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
|
}
|
|
@@ -17630,7 +17638,7 @@ function eval_pyson(value){
|
|
|
17630
17638
|
var record = this.record;
|
|
17631
17639
|
var field_size = record.expr_eval(
|
|
17632
17640
|
this.attributes.size) || -1;
|
|
17633
|
-
field_size -= this.field.get_eval(record);
|
|
17641
|
+
field_size -= this.field.get_eval(record).length;
|
|
17634
17642
|
var win = new Sao.Window.Form(this.screen, update_sequence, {
|
|
17635
17643
|
new_: true,
|
|
17636
17644
|
many: field_size,
|
|
@@ -25776,7 +25784,8 @@ function eval_pyson(value){
|
|
|
25776
25784
|
} else {
|
|
25777
25785
|
domain = this.screen.search_domain(
|
|
25778
25786
|
this.screen.screen_container.get_text());
|
|
25779
|
-
if (!this.ignore_search_limit.prop('checked')
|
|
25787
|
+
if (!this.ignore_search_limit.prop('checked') &&
|
|
25788
|
+
this.screen.limit !== null) {
|
|
25780
25789
|
query_string.push(['s', this.screen.limit.toString()]);
|
|
25781
25790
|
query_string.push(
|
|
25782
25791
|
['p', Math.floor(
|