tryton-sao 6.6.5 → 6.6.7

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,3 +1,13 @@
1
+
2
+ Version 6.6.7 - 2023-05-03
3
+ --------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
7
+ Version 6.6.6 - 2023-04-01
8
+ --------------------------
9
+ * Bug fixes (see mercurial logs for details)
10
+
1
11
  Version 6.6.5 - 2023-02-17
2
12
  --------------------------
3
13
  * Bug fixes (see mercurial logs for details)
@@ -1,7 +1,7 @@
1
1
  /* This file is part of Tryton. The COPYRIGHT file at the top level of
2
2
  this repository contains the full copyright notices and license terms. */
3
3
  var Sao = {
4
- __version__: '6.6.5',
4
+ __version__: '6.6.7',
5
5
  };
6
6
 
7
7
  (function() {
@@ -516,7 +516,9 @@ var Sao = {
516
516
  }
517
517
  try {
518
518
  attributes.view_ids = loads(params.views || '[]');
519
- attributes.limit = loads(params.limi || 'null');
519
+ if (params.limit !== undefined) {
520
+ attributes.limit = loads(params.limit || 'null');
521
+ }
520
522
  attributes.name = loads(params.name || '""');
521
523
  attributes.search_value = loads(params.search_value || '[]');
522
524
  attributes.domain = loads(params.domain || '[]');
@@ -9157,6 +9159,12 @@ var Sao = {
9157
9159
  return value;
9158
9160
  },
9159
9161
  set_client: function(record, value, force_change) {
9162
+ if (value === null) {
9163
+ value = [];
9164
+ }
9165
+ if (typeof(value) == 'string') {
9166
+ value = [value];
9167
+ }
9160
9168
  if (value) {
9161
9169
  value = value.slice().sort();
9162
9170
  }
@@ -13527,7 +13535,9 @@ var Sao = {
13527
13535
  }
13528
13536
  const display = () => {
13529
13537
  // Return the original promise to keep succeed/rejected state
13530
- return this.display().then(() => prm, () => prm);
13538
+ return this.display()
13539
+ .always(() => this.record_saved())
13540
+ .then(() => prm, () => prm);
13531
13541
  };
13532
13542
  return prm.then(current_record => {
13533
13543
  if (path && current_record && current_record.id) {
@@ -17859,7 +17869,7 @@ function eval_pyson(value){
17859
17869
  var record = this.record;
17860
17870
  var field_size = record.expr_eval(
17861
17871
  this.attributes.size) || -1;
17862
- field_size -= this.field.get_eval(record);
17872
+ field_size -= this.field.get_eval(record).length;
17863
17873
  var win = new Sao.Window.Form(this.screen, update_sequence, {
17864
17874
  new_: true,
17865
17875
  many: field_size,
@@ -26005,7 +26015,8 @@ function eval_pyson(value){
26005
26015
  } else {
26006
26016
  domain = this.screen.search_domain(
26007
26017
  this.screen.screen_container.get_text());
26008
- if (!this.ignore_search_limit.prop('checked')) {
26018
+ if (!this.ignore_search_limit.prop('checked') &&
26019
+ this.screen.limit !== null) {
26009
26020
  query_string.push(['s', this.screen.limit.toString()]);
26010
26021
  query_string.push(
26011
26022
  ['p', Math.floor(