tryton-sao 7.0.47 → 7.0.48
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 +14 -7
- 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/sao.js +1 -1
- package/src/screen.js +8 -2
- package/src/session.js +1 -0
- package/src/tab.js +2 -0
package/CHANGELOG
CHANGED
package/COPYRIGHT
CHANGED
package/dist/tryton-sao.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
/* eslint-disable no-redeclare */
|
|
5
5
|
var Sao = {
|
|
6
|
-
__version__: '7.0.
|
|
6
|
+
__version__: '7.0.48',
|
|
7
7
|
};
|
|
8
8
|
/* eslint-enable no-redeclare */
|
|
9
9
|
|
|
@@ -2901,6 +2901,7 @@ var Sao = {
|
|
|
2901
2901
|
if (service_window.closed) {
|
|
2902
2902
|
window.clearInterval(timer);
|
|
2903
2903
|
session.database = database;
|
|
2904
|
+
session.login = null;
|
|
2904
2905
|
session.restore();
|
|
2905
2906
|
if (session.session) {
|
|
2906
2907
|
dfd.resolve(session);
|
|
@@ -5261,6 +5262,7 @@ var Sao = {
|
|
|
5261
5262
|
let [, thousandSeparator] = /^10(.)?000/.exec(format(10000));
|
|
5262
5263
|
let [, decimalSign] = /^0(.)1$/.exec(format(0.1));
|
|
5263
5264
|
return Number(string
|
|
5265
|
+
.replace(new RegExp(' ', 'g'), '')
|
|
5264
5266
|
.replace(new RegExp(thousandSeparator, 'g'), '')
|
|
5265
5267
|
.replace(decimalSign, '.'));
|
|
5266
5268
|
}
|
|
@@ -10179,10 +10181,7 @@ var Sao = {
|
|
|
10179
10181
|
if (record2) {
|
|
10180
10182
|
let to_update = Object.fromEntries(
|
|
10181
10183
|
Object.entries(vals).filter(
|
|
10182
|
-
([k, v]) =>
|
|
10183
|
-
!Object.prototype.hasOwnProperty.call(
|
|
10184
|
-
vals_to_set, k)
|
|
10185
|
-
}
|
|
10184
|
+
([k, v]) => !Object.hasOwn(vals_to_set, k)
|
|
10186
10185
|
));
|
|
10187
10186
|
record2.set_on_change(to_update);
|
|
10188
10187
|
}
|
|
@@ -11501,6 +11500,8 @@ var Sao = {
|
|
|
11501
11500
|
}
|
|
11502
11501
|
return set_cursor;
|
|
11503
11502
|
});
|
|
11503
|
+
} else {
|
|
11504
|
+
this.refresh_resources(true);
|
|
11504
11505
|
}
|
|
11505
11506
|
return set_cursor;
|
|
11506
11507
|
})
|
|
@@ -12817,8 +12818,14 @@ var Sao = {
|
|
|
12817
12818
|
break;
|
|
12818
12819
|
case 'selection':
|
|
12819
12820
|
case 'multiselection':
|
|
12821
|
+
var selection = jQuery.extend([], field.selection);
|
|
12822
|
+
if (field.sort === undefined || field.sort) {
|
|
12823
|
+
selection.sort(function(a, b) {
|
|
12824
|
+
return a[1].localeCompare(b[1]);
|
|
12825
|
+
});
|
|
12826
|
+
}
|
|
12820
12827
|
entry = new Sao.ScreenContainer.Selection(
|
|
12821
|
-
|
|
12828
|
+
selection, prefix + field.name);
|
|
12822
12829
|
input = entry.el;
|
|
12823
12830
|
break;
|
|
12824
12831
|
case 'date':
|
|
@@ -14397,7 +14404,7 @@ var Sao = {
|
|
|
14397
14404
|
if (this.current_view &&
|
|
14398
14405
|
~['tree', 'graph', 'calendar'].indexOf(this.current_view.view_type) &&
|
|
14399
14406
|
!this.group.parent) {
|
|
14400
|
-
this.search_filter();
|
|
14407
|
+
this.search_filter(this.screen_container.get_text());
|
|
14401
14408
|
}
|
|
14402
14409
|
} else if (action == 'reload menu') {
|
|
14403
14410
|
Sao.Session.current_session.reload_context()
|