tryton-sao 6.0.34 → 6.0.36
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 +10 -0
- package/COPYRIGHT +2 -2
- package/dist/tryton-sao.js +24 -4
- package/dist/tryton-sao.min.js +2 -2
- package/package.json +1 -1
- package/src/common.js +8 -1
- package/src/model.js +4 -0
- package/src/view/form.js +12 -3
package/CHANGELOG
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
Version 6.0.36 - 2024-01-15
|
|
3
|
+
---------------------------
|
|
4
|
+
* Bug fixes (see mercurial logs for details)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Version 6.0.35 - 2024-01-01
|
|
8
|
+
---------------------------
|
|
9
|
+
* Bug fixes (see mercurial logs for details)
|
|
10
|
+
|
|
11
|
+
|
|
2
12
|
Version 6.0.34 - 2023-12-16
|
|
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-
|
|
2
|
+
Copyright (C) 2012-2024 Cédric Krier.
|
|
3
3
|
Copyright (C) 2012-2014 Bertrand Chenal.
|
|
4
|
-
Copyright (C) 2012-
|
|
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
|
package/dist/tryton-sao.js
CHANGED
|
@@ -3699,8 +3699,12 @@ var Sao = {};
|
|
|
3699
3699
|
}
|
|
3700
3700
|
}.bind(this));
|
|
3701
3701
|
prm.fail(function() {
|
|
3702
|
+
var selection = [];
|
|
3703
|
+
if (this.nullable_widget) {
|
|
3704
|
+
selection.push([null, '']);
|
|
3705
|
+
}
|
|
3702
3706
|
this._last_domain = null;
|
|
3703
|
-
this.selection =
|
|
3707
|
+
this.selection = selection;
|
|
3704
3708
|
if (callback) {
|
|
3705
3709
|
callback(this.selection, this.help);
|
|
3706
3710
|
}
|
|
@@ -3746,6 +3750,9 @@ var Sao = {};
|
|
|
3746
3750
|
if (!this.attributes.relation) {
|
|
3747
3751
|
return jQuery.when([]);
|
|
3748
3752
|
}
|
|
3753
|
+
if (value === null) {
|
|
3754
|
+
return jQuery.when([null, '']);
|
|
3755
|
+
}
|
|
3749
3756
|
for (var i = 0, len = this.inactive_selection.length; i < len; i++) {
|
|
3750
3757
|
if (value == this.inactive_selection[i][0]) {
|
|
3751
3758
|
return jQuery.when(this.inactive_selection[i]);
|
|
@@ -9160,6 +9167,10 @@ var Sao = {};
|
|
|
9160
9167
|
rec_name = '';
|
|
9161
9168
|
}
|
|
9162
9169
|
}
|
|
9170
|
+
if ((value < 0) && (this.name != record.group.parent_name)) {
|
|
9171
|
+
value = null;
|
|
9172
|
+
rec_name = '';
|
|
9173
|
+
}
|
|
9163
9174
|
Sao.setdefault(
|
|
9164
9175
|
record._values, this.name + '.', {}).rec_name = rec_name;
|
|
9165
9176
|
Sao.field.Many2One._super.set_client.call(this, record, value,
|
|
@@ -14333,7 +14344,7 @@ function eval_pyson(value){
|
|
|
14333
14344
|
field = record.model.fields[fname];
|
|
14334
14345
|
fields.push([
|
|
14335
14346
|
fname,
|
|
14336
|
-
field.description.loading || 'eager' == 'eager',
|
|
14347
|
+
(field.description.loading || 'eager') == 'eager',
|
|
14337
14348
|
field.views.size,
|
|
14338
14349
|
]);
|
|
14339
14350
|
});
|
|
@@ -17873,8 +17884,12 @@ function eval_pyson(value){
|
|
|
17873
17884
|
var callback = function(result) {
|
|
17874
17885
|
if (result) {
|
|
17875
17886
|
screen.current_record.save().done(function() {
|
|
17887
|
+
var added = 'id' in this.screen.current_record.modified_fields;
|
|
17876
17888
|
// Force a reload on next display
|
|
17877
17889
|
this.screen.current_record.cancel();
|
|
17890
|
+
if (added) {
|
|
17891
|
+
this.screen.current_record.modified_fields.id = true;
|
|
17892
|
+
}
|
|
17878
17893
|
}.bind(this));
|
|
17879
17894
|
}
|
|
17880
17895
|
}.bind(this);
|
|
@@ -18307,10 +18322,15 @@ function eval_pyson(value){
|
|
|
18307
18322
|
});
|
|
18308
18323
|
url = window.URL.createObjectURL(blob);
|
|
18309
18324
|
}
|
|
18310
|
-
|
|
18311
|
-
this.object.
|
|
18325
|
+
// duplicate object to force refresh on buggy browsers
|
|
18326
|
+
var object = this.object.clone();
|
|
18327
|
+
object.attr('data', url);
|
|
18328
|
+
object.get(0).onload = function() {
|
|
18312
18329
|
window.URL.revokeObjectURL(url);
|
|
18313
18330
|
};
|
|
18331
|
+
object.attr('data', url);
|
|
18332
|
+
this.object.replaceWith(object);
|
|
18333
|
+
this.object = object;
|
|
18314
18334
|
}.bind(this));
|
|
18315
18335
|
},
|
|
18316
18336
|
});
|