tryton-sao 7.0.21 → 7.0.23

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.23 - 2025-01-01
3
+ ---------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
7
+ Version 7.0.22 - 2024-12-16
8
+ ---------------------------
9
+ * Bug fixes (see mercurial logs for details)
10
+
11
+
2
12
  Version 7.0.21 - 2024-12-01
3
13
  ---------------------------
4
14
  * Bug fixes (see mercurial logs for details)
@@ -9910,8 +9910,8 @@ img.icon {
9910
9910
  .board .form-one2one select,
9911
9911
  .form .form-reference select,
9912
9912
  .board .form-reference select,
9913
- .form form-binary select,
9914
- .board form-binary select {
9913
+ .form .form-binary select,
9914
+ .board .form-binary select {
9915
9915
  min-width: 8ch;
9916
9916
  }
9917
9917
  .form .form-many2one input,
@@ -9920,8 +9920,8 @@ img.icon {
9920
9920
  .board .form-one2one input,
9921
9921
  .form .form-reference input,
9922
9922
  .board .form-reference input,
9923
- .form form-binary input,
9924
- .board form-binary input {
9923
+ .form .form-binary input,
9924
+ .board .form-binary input {
9925
9925
  min-width: 12ch;
9926
9926
  }
9927
9927
  @media screen and (min-width: 768px) {
@@ -3,7 +3,7 @@
3
3
 
4
4
  /* eslint-disable no-redeclare */
5
5
  var Sao = {
6
- __version__: '7.0.21',
6
+ __version__: '7.0.23',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
@@ -10100,8 +10100,7 @@ var Sao = {
10100
10100
  if (record.model.name == this.description.relation) {
10101
10101
  model = record.model;
10102
10102
  }
10103
- var context = record.expr_eval(this.description.context || {});
10104
- var group = Sao.Group(model, context, []);
10103
+ var group = Sao.Group(model, {}, []);
10105
10104
  group.set_parent(record);
10106
10105
  group.parent_name = this.description.relation_field;
10107
10106
  group.child_name = this.name;
@@ -11620,7 +11619,7 @@ var Sao = {
11620
11619
  var record = this.screen.current_record;
11621
11620
  var menu = dropdown.find('.dropdown-menu');
11622
11621
  menu.empty();
11623
- Sao.Window.Attachment.get_attachments(record)
11622
+ return Sao.Window.Attachment.get_attachments(record)
11624
11623
  .then(function(attachments) {
11625
11624
  attachments.forEach(function(value) {
11626
11625
  var name = value[0],
@@ -12211,7 +12210,8 @@ var Sao = {
12211
12210
  'use strict';
12212
12211
 
12213
12212
  Sao.ScreenContainer = Sao.class_(Object, {
12214
- init: function(tab_domain) {
12213
+ init: function(screen, tab_domain) {
12214
+ this.screen = screen;
12215
12215
  this.alternate_viewport = jQuery('<div/>', {
12216
12216
  'class': 'screen-container'
12217
12217
  });
@@ -12598,13 +12598,10 @@ var Sao = {
12598
12598
  do_search: function() {
12599
12599
  return this.screen.search_filter(this.get_text());
12600
12600
  },
12601
- set_screen: function(screen) {
12602
- this.screen = screen;
12603
- this.but_bookmark.prop('disabled',
12604
- jQuery.isEmptyObject(this.bookmarks()));
12605
- this.bookmark_match();
12606
- },
12607
12601
  show_filter: function() {
12602
+ this.but_bookmark.prop(
12603
+ 'disabled', jQuery.isEmptyObject(this.bookmarks()));
12604
+ this.bookmark_match();
12608
12605
  this.filter_box.show();
12609
12606
  if (this.tab) {
12610
12607
  this.tab.show();
@@ -13024,7 +13021,7 @@ var Sao = {
13024
13021
  this.new_group(attributes.context || {});
13025
13022
  this.current_record = null;
13026
13023
  this.screen_container = new Sao.ScreenContainer(
13027
- attributes.tab_domain);
13024
+ this, attributes.tab_domain);
13028
13025
  this.breadcrumb = attributes.breadcrumb || [];
13029
13026
 
13030
13027
  this.context_screen = null;
@@ -13935,7 +13932,6 @@ var Sao = {
13935
13932
  },
13936
13933
  search_active: function(active) {
13937
13934
  if (active && !this.group.parent) {
13938
- this.screen_container.set_screen(this);
13939
13935
  this.screen_container.show_filter();
13940
13936
  } else {
13941
13937
  this.screen_container.hide_filter();
@@ -14891,7 +14887,6 @@ function eval_pyson(value){
14891
14887
  var group = new Sao.View.Form.Container(
14892
14888
  Number(node.getAttribute('col') || 4));
14893
14889
  this.view.containers.push(group);
14894
- this.parse_child(node, group);
14895
14890
 
14896
14891
  if (attributes.xalign === undefined) {
14897
14892
  attributes.xalign = 0.5;
@@ -14916,6 +14911,9 @@ function eval_pyson(value){
14916
14911
 
14917
14912
  this.view.state_widgets.push(widget);
14918
14913
  this.container.add(widget, attributes);
14914
+ // Parse the children at the end to preserve the order of the state
14915
+ // widgets
14916
+ this.parse_child(node, group);
14919
14917
  },
14920
14918
  _parse_hpaned: function(node, attributes) {
14921
14919
  this._parse_paned(node, attributes, 'horizontal');
@@ -19018,7 +19016,8 @@ function eval_pyson(value){
19018
19016
  },
19019
19017
  set_readonly: function(readonly) {
19020
19018
  Sao.View.Form.Binary._super.set_readonly.call(this, readonly);
19021
- this.but_select.prop('disabled', readonly);
19019
+ this.but_select.toggleClass('disabled', readonly);
19020
+ this.input_select.toggle(!readonly);
19022
19021
  this.but_clear.prop('disabled', readonly);
19023
19022
  if (this.text) {
19024
19023
  this.text.prop('readonly', readonly);
@@ -26718,6 +26717,7 @@ function eval_pyson(value){
26718
26717
  this.el_add_field_names.prop('checked', export_.values.header);
26719
26718
  this.selected_records.val(
26720
26719
  JSON.stringify(export_.values.records == 'selected'));
26720
+ this.selected_records.change();
26721
26721
  },
26722
26722
  _traverse: function(fields, prefix, parents, i) {
26723
26723
  var field, item;
@@ -9910,8 +9910,8 @@ img.icon {
9910
9910
  .board .form-one2one select,
9911
9911
  .form .form-reference select,
9912
9912
  .board .form-reference select,
9913
- .form form-binary select,
9914
- .board form-binary select {
9913
+ .form .form-binary select,
9914
+ .board .form-binary select {
9915
9915
  min-width: 8ch;
9916
9916
  }
9917
9917
  .form .form-many2one input,
@@ -9920,8 +9920,8 @@ img.icon {
9920
9920
  .board .form-one2one input,
9921
9921
  .form .form-reference input,
9922
9922
  .board .form-reference input,
9923
- .form form-binary input,
9924
- .board form-binary input {
9923
+ .form .form-binary input,
9924
+ .board .form-binary input {
9925
9925
  min-width: 12ch;
9926
9926
  }
9927
9927
  @media screen and (min-width: 768px) {