tryton-sao 7.4.1 → 7.4.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,4 +1,9 @@
1
1
 
2
+ Version 7.4.2 - 2024-12-16
3
+ --------------------------
4
+ * Bug fixes (see mercurial logs for details)
5
+
6
+
2
7
  Version 7.4.1 - 2024-12-01
3
8
  --------------------------
4
9
  * Bug fixes (see mercurial logs for details)
@@ -3,7 +3,7 @@
3
3
 
4
4
  /* eslint-disable no-redeclare */
5
5
  var Sao = {
6
- __version__: '7.4.0',
6
+ __version__: '7.4.2',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
@@ -15114,7 +15114,6 @@ function eval_pyson(value){
15114
15114
  var group = new Sao.View.Form.Container(
15115
15115
  Number(node.getAttribute('col') || 4));
15116
15116
  this.view.containers.push(group);
15117
- this.parse_child(node, group);
15118
15117
 
15119
15118
  if (attributes.xalign === undefined) {
15120
15119
  attributes.xalign = 0.5;
@@ -15139,6 +15138,9 @@ function eval_pyson(value){
15139
15138
 
15140
15139
  this.view.state_widgets.push(widget);
15141
15140
  this.container.add(widget, attributes);
15141
+ // Parse the children at the end to preserve the order of the state
15142
+ // widgets
15143
+ this.parse_child(node, group);
15142
15144
  },
15143
15145
  _parse_hpaned: function(node, attributes) {
15144
15146
  this._parse_paned(node, attributes, 'horizontal');
@@ -19480,7 +19482,8 @@ function eval_pyson(value){
19480
19482
  set_readonly: function(readonly) {
19481
19483
  Sao.View.Form.Binary._super.set_readonly.call(this, readonly);
19482
19484
  var record = this.record;
19483
- this.but_select.prop('disabled', readonly || !record);
19485
+ this.but_select.toggleClass('disabled', readonly || !record);
19486
+ this.input_select.toggle(!readonly && record);
19484
19487
  this.but_clear.prop('disabled', readonly || !record);
19485
19488
  if (this.text) {
19486
19489
  this.text.prop('readonly', readonly);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "tryton-sao",
3
3
  "title": "sao",
4
4
  "description": "Tryton webclient",
5
- "version": "7.4.1",
5
+ "version": "7.4.2",
6
6
  "homepage": "https://www.tryton.org/",
7
7
  "author": {
8
8
  "name": "Tryton"
package/src/sao.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  /* eslint-disable no-redeclare */
5
5
  var Sao = {
6
- __version__: '7.4.0',
6
+ __version__: '7.4.2',
7
7
  };
8
8
  /* eslint-enable no-redeclare */
9
9
 
package/src/view/form.js CHANGED
@@ -236,7 +236,6 @@ function eval_pyson(value){
236
236
  var group = new Sao.View.Form.Container(
237
237
  Number(node.getAttribute('col') || 4));
238
238
  this.view.containers.push(group);
239
- this.parse_child(node, group);
240
239
 
241
240
  if (attributes.xalign === undefined) {
242
241
  attributes.xalign = 0.5;
@@ -261,6 +260,9 @@ function eval_pyson(value){
261
260
 
262
261
  this.view.state_widgets.push(widget);
263
262
  this.container.add(widget, attributes);
263
+ // Parse the children at the end to preserve the order of the state
264
+ // widgets
265
+ this.parse_child(node, group);
264
266
  },
265
267
  _parse_hpaned: function(node, attributes) {
266
268
  this._parse_paned(node, attributes, 'horizontal');
@@ -4602,7 +4604,8 @@ function eval_pyson(value){
4602
4604
  set_readonly: function(readonly) {
4603
4605
  Sao.View.Form.Binary._super.set_readonly.call(this, readonly);
4604
4606
  var record = this.record;
4605
- this.but_select.prop('disabled', readonly || !record);
4607
+ this.but_select.toggleClass('disabled', readonly || !record);
4608
+ this.input_select.toggle(!readonly && record);
4606
4609
  this.but_clear.prop('disabled', readonly || !record);
4607
4610
  if (this.text) {
4608
4611
  this.text.prop('readonly', readonly);