tryton-sao 6.6.1 → 6.6.2

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,7 @@
1
+ Version 6.6.2 - 2023-01-02
2
+ --------------------------
3
+ * Bug fixes (see mercurial logs for details)
4
+
1
5
  Version 6.6.1 - 2022-12-06
2
6
  --------------------------
3
7
  * 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.0',
4
+ __version__: '6.6.2',
5
5
  };
6
6
 
7
7
  (function() {
@@ -5835,7 +5835,7 @@ var Sao = {
5835
5835
  }
5836
5836
  if ((name.split('.').length - 1) == count &&
5837
5837
  (domain[1] == '=')) {
5838
- return [true, domain[1], value];
5838
+ return [true, name, value];
5839
5839
  }
5840
5840
  }
5841
5841
  return [false, null, null];
@@ -9551,7 +9551,15 @@ var Sao = {
9551
9551
  group.load(value, modified || default_);
9552
9552
  } else {
9553
9553
  for (const vals of value) {
9554
- var new_record = group.new_(false);
9554
+ var new_record;
9555
+ if ('id' in vals) {
9556
+ new_record = group.get(vals.id);
9557
+ if (!new_record) {
9558
+ new_record = group.new_(false, vals.id);
9559
+ }
9560
+ } else {
9561
+ new_record = group.new_(false);
9562
+ }
9555
9563
  if (default_) {
9556
9564
  // Don't validate as parent will validate
9557
9565
  new_record.set_default(vals, false, false);
@@ -12721,8 +12729,7 @@ var Sao = {
12721
12729
  this.domain = attributes.domain || [];
12722
12730
  this.context_domain = attributes.context_domain;
12723
12731
  this.size_limit = null;
12724
- if ((this.attributes.limit === undefined) ||
12725
- (this.attributes.limit === null)) {
12732
+ if (this.attributes.limit === undefined) {
12726
12733
  this.limit = Sao.config.limit;
12727
12734
  } else {
12728
12735
  this.limit = attributes.limit;
@@ -19903,7 +19910,8 @@ function eval_pyson(value){
19903
19910
  sum_row.append(jQuery('<th/>'));
19904
19911
  this.tfoot = jQuery('<tfoot/>');
19905
19912
  this.tfoot.append(sum_row);
19906
- this.table.append(this.tfoot);
19913
+ // insert before thead to not hide drop-down from thead
19914
+ this.table.prepend(this.tfoot);
19907
19915
  }
19908
19916
 
19909
19917
  if (this.children_field) {