tryton-sao 6.0.75 → 6.0.76
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 +5 -0
- package/COPYRIGHT +1 -1
- package/dist/tryton-sao.js +12 -6
- package/dist/tryton-sao.min.js +2 -2
- package/package.json +1 -1
- package/src/common.js +1 -0
- package/src/model.js +1 -4
- package/src/screen.js +8 -2
- package/src/tab.js +2 -0
package/CHANGELOG
CHANGED
package/COPYRIGHT
CHANGED
package/dist/tryton-sao.js
CHANGED
|
@@ -4987,6 +4987,7 @@ var Sao = {};
|
|
|
4987
4987
|
let [, thousandSeparator] = /^10(.)?000/.exec(format(10000));
|
|
4988
4988
|
let [, decimalSign] = /^0(.)1$/.exec(format(0.1));
|
|
4989
4989
|
return Number(string
|
|
4990
|
+
.replace(new RegExp(' ', 'g'), '')
|
|
4990
4991
|
.replace(new RegExp(thousandSeparator, 'g'), '')
|
|
4991
4992
|
.replace(decimalSign, '.'));
|
|
4992
4993
|
}
|
|
@@ -9651,10 +9652,7 @@ var Sao = {};
|
|
|
9651
9652
|
if (record2) {
|
|
9652
9653
|
let to_update = Object.fromEntries(
|
|
9653
9654
|
Object.entries(vals).filter(
|
|
9654
|
-
([k, v]) =>
|
|
9655
|
-
!Object.prototype.hasOwnProperty.call(
|
|
9656
|
-
vals_to_set, k)
|
|
9657
|
-
}
|
|
9655
|
+
([k, v]) => !Object.hasOwn(vals_to_set, k)
|
|
9658
9656
|
));
|
|
9659
9657
|
record2.set_on_change(to_update);
|
|
9660
9658
|
}
|
|
@@ -10956,6 +10954,8 @@ var Sao = {};
|
|
|
10956
10954
|
}.bind(this));
|
|
10957
10955
|
return set_cursor;
|
|
10958
10956
|
}.bind(this));
|
|
10957
|
+
} else {
|
|
10958
|
+
this.refresh_resources(true);
|
|
10959
10959
|
}
|
|
10960
10960
|
return set_cursor;
|
|
10961
10961
|
}.bind(this))
|
|
@@ -12289,8 +12289,14 @@ var Sao = {};
|
|
|
12289
12289
|
break;
|
|
12290
12290
|
case 'selection':
|
|
12291
12291
|
case 'multiselection':
|
|
12292
|
+
var selection = jQuery.extend([], field.selection);
|
|
12293
|
+
if (field.sort === undefined || field.sort) {
|
|
12294
|
+
selection.sort(function(a, b) {
|
|
12295
|
+
return a[1].localeCompare(b[1]);
|
|
12296
|
+
});
|
|
12297
|
+
}
|
|
12292
12298
|
entry = new Sao.ScreenContainer.Selection(
|
|
12293
|
-
|
|
12299
|
+
selection, prefix + field.name);
|
|
12294
12300
|
input = entry.el;
|
|
12295
12301
|
break;
|
|
12296
12302
|
case 'date':
|
|
@@ -13865,7 +13871,7 @@ var Sao = {};
|
|
|
13865
13871
|
if (this.current_view &&
|
|
13866
13872
|
~['tree', 'graph', 'calendar'].indexOf(this.current_view.view_type) &&
|
|
13867
13873
|
!this.group.parent) {
|
|
13868
|
-
this.search_filter();
|
|
13874
|
+
this.search_filter(this.screen_container.get_text());
|
|
13869
13875
|
}
|
|
13870
13876
|
} else if (action == 'reload menu') {
|
|
13871
13877
|
Sao.Session.current_session.reload_context()
|