tryton-sao 6.6.1 → 6.6.3
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 +8 -0
- package/COPYRIGHT +2 -2
- package/dist/tryton-sao.js +16 -7
- package/dist/tryton-sao.min.js +2 -2
- package/package.json +1 -1
- package/src/common.js +1 -1
- package/src/model.js +9 -1
- package/src/sao.js +1 -1
- package/src/screen.js +3 -3
- package/src/view/tree.js +2 -1
- package/tests/sao.js +2 -2
package/CHANGELOG
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
Version 6.6.3 - 2023-01-15
|
|
2
|
+
--------------------------
|
|
3
|
+
* Bug fixes (see mercurial logs for details)
|
|
4
|
+
|
|
5
|
+
Version 6.6.2 - 2023-01-02
|
|
6
|
+
--------------------------
|
|
7
|
+
* Bug fixes (see mercurial logs for details)
|
|
8
|
+
|
|
1
9
|
Version 6.6.1 - 2022-12-06
|
|
2
10
|
--------------------------
|
|
3
11
|
* Bug fixes (see mercurial logs for details)
|
package/COPYRIGHT
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Copyright (C) 2012-2022 Nicolas Évrard.
|
|
2
|
-
Copyright (C) 2012-
|
|
2
|
+
Copyright (C) 2012-2023 Cédric Krier.
|
|
3
3
|
Copyright (C) 2012-2014 Bertrand Chenal.
|
|
4
|
-
Copyright (C) 2012-
|
|
4
|
+
Copyright (C) 2012-2023 B2CK SPRL.
|
|
5
5
|
Copyright (C) 2019 Jitbit.
|
|
6
6
|
Copyright (C) 2013 Thomas Park
|
|
7
7
|
Copyright (C) 2020-2021 Maxime Richez
|
package/dist/tryton-sao.js
CHANGED
|
@@ -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.
|
|
4
|
+
__version__: '6.6.3',
|
|
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,
|
|
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
|
|
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 (
|
|
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;
|
|
@@ -13665,7 +13672,8 @@ var Sao = {
|
|
|
13665
13672
|
for (var name in fields) {
|
|
13666
13673
|
var props = fields[name];
|
|
13667
13674
|
if ((props.type != 'selection') &&
|
|
13668
|
-
|
|
13675
|
+
(props.type != 'multiselection') &&
|
|
13676
|
+
(props.type != 'reference')) {
|
|
13669
13677
|
continue;
|
|
13670
13678
|
}
|
|
13671
13679
|
if (props.selection instanceof Array) {
|
|
@@ -19903,7 +19911,8 @@ function eval_pyson(value){
|
|
|
19903
19911
|
sum_row.append(jQuery('<th/>'));
|
|
19904
19912
|
this.tfoot = jQuery('<tfoot/>');
|
|
19905
19913
|
this.tfoot.append(sum_row);
|
|
19906
|
-
|
|
19914
|
+
// insert before thead to not hide drop-down from thead
|
|
19915
|
+
this.table.prepend(this.tfoot);
|
|
19907
19916
|
}
|
|
19908
19917
|
|
|
19909
19918
|
if (this.children_field) {
|