tryton-sao 7.0.4 → 7.0.6

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,4 +1,14 @@
1
1
 
2
+ Version 7.0.6 - 2024-02-03
3
+ --------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
7
+ Version 7.0.5 - 2024-01-15
8
+ --------------------------
9
+ * Bug fixes (see mercurial logs for details)
10
+
11
+
2
12
  Version 7.0.4 - 2024-01-01
3
13
  --------------------------
4
14
  * Bug fixes (see mercurial logs for details)
package/COPYRIGHT CHANGED
@@ -1,7 +1,7 @@
1
1
  Copyright (C) 2012-2023 Nicolas Évrard.
2
- Copyright (C) 2012-2023 Cédric Krier.
2
+ Copyright (C) 2012-2024 Cédric Krier.
3
3
  Copyright (C) 2012-2014 Bertrand Chenal.
4
- Copyright (C) 2012-2023 B2CK SPRL.
4
+ Copyright (C) 2012-2024 B2CK SPRL.
5
5
  Copyright (C) 2019 Jitbit.
6
6
  Copyright (C) 2013 Thomas Park
7
7
  Copyright (C) 2020-2021 Maxime Richez
@@ -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__: '7.0.4',
4
+ __version__: '7.0.6',
5
5
  };
6
6
 
7
7
  (function() {
@@ -9707,6 +9707,10 @@ var Sao = {
9707
9707
  rec_name = '';
9708
9708
  }
9709
9709
  }
9710
+ if ((value < 0) && (this.name != record.group.parent_name)) {
9711
+ value = null;
9712
+ rec_name = '';
9713
+ }
9710
9714
  Sao.setdefault(
9711
9715
  record._values, this.name + '.', {}).rec_name = rec_name;
9712
9716
  Sao.field.Many2One._super.set_client.call(this, record, value,
@@ -14933,7 +14937,7 @@ function eval_pyson(value){
14933
14937
  field = record.model.fields[fname];
14934
14938
  fields.push([
14935
14939
  fname,
14936
- field.description.loading || 'eager' == 'eager',
14940
+ (field.description.loading || 'eager') == 'eager',
14937
14941
  field.views.size,
14938
14942
  ]);
14939
14943
  }
@@ -21389,7 +21393,11 @@ function eval_pyson(value){
21389
21393
  if (!row || !this.children_field) {
21390
21394
  return this.rows.length;
21391
21395
  }
21392
- return row.record._values[this.children_field].length;
21396
+ if (row.record.is_loaded(this.children_field)) {
21397
+ return row.record.field_get_client(this.children_field).length;
21398
+ } else {
21399
+ return 0;
21400
+ }
21393
21401
  },
21394
21402
  set_cursor: function(new_, reset_view) {
21395
21403
  var i, root_group, path, row_path, row, column;