tryton-sao 6.4.2 → 6.4.5
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 +9 -0
- package/dist/tryton-sao.css +3 -2
- package/dist/tryton-sao.js +24 -9
- package/dist/tryton-sao.min.css +3 -2
- package/dist/tryton-sao.min.js +2 -2
- package/package.json +1 -1
- package/src/common.js +3 -2
- package/src/sao.js +1 -0
- package/src/sao.less +2 -3
- package/src/view/calendar.js +4 -2
- package/src/view/form.js +6 -4
- package/src/view/tree.js +3 -0
- package/src/window.js +7 -1
package/CHANGELOG
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
Version 6.4.5 - 2022-09-06
|
|
2
|
+
* Bug fixes (see mercurial logs for details)
|
|
3
|
+
|
|
4
|
+
Version 6.4.4 - 2022-08-17
|
|
5
|
+
* Bug fixes (see mercurial logs for details)
|
|
6
|
+
|
|
7
|
+
Version 6.4.3 - 2022-07-01
|
|
8
|
+
* Bug fixes (see mercurial logs for details)
|
|
9
|
+
|
|
1
10
|
Version 6.4.2 - 2022-06-15
|
|
2
11
|
* Bug fixes (see mercurial logs for details)
|
|
3
12
|
|
package/dist/tryton-sao.css
CHANGED
|
@@ -9164,9 +9164,10 @@ html[theme="default"] .carousel-caption h6 {
|
|
|
9164
9164
|
content: "";
|
|
9165
9165
|
background-color: rgba(0, 0, 0, 0);
|
|
9166
9166
|
}
|
|
9167
|
-
|
|
9168
|
-
overflow
|
|
9167
|
+
.btn-horizontal {
|
|
9168
|
+
overflow: hidden;
|
|
9169
9169
|
text-overflow: ellipsis;
|
|
9170
|
+
white-space: nowrap;
|
|
9170
9171
|
}
|
|
9171
9172
|
.input-group > .form-control-feedback {
|
|
9172
9173
|
z-index: 3;
|
package/dist/tryton-sao.js
CHANGED
|
@@ -848,6 +848,7 @@ var Sao = {};
|
|
|
848
848
|
set_visible: function() {
|
|
849
849
|
},
|
|
850
850
|
get_visible: function() {
|
|
851
|
+
return true;
|
|
851
852
|
},
|
|
852
853
|
favorite_click: function(e) {
|
|
853
854
|
// Prevent activate the action of the row
|
|
@@ -3823,8 +3824,9 @@ var Sao = {};
|
|
|
3823
3824
|
}).prependTo(this.el);
|
|
3824
3825
|
this.icon.hide();
|
|
3825
3826
|
}
|
|
3826
|
-
this.el.addClass(
|
|
3827
|
-
|
|
3827
|
+
this.el.addClass([
|
|
3828
|
+
'btn', 'btn-horizontal',
|
|
3829
|
+
(style || 'btn-default'), (size || '')].join(' '));
|
|
3828
3830
|
this.el.attr('type', 'button');
|
|
3829
3831
|
this.icon.attr('aria-hidden', true);
|
|
3830
3832
|
this.set_icon(attributes.icon);
|
|
@@ -14728,7 +14730,7 @@ function eval_pyson(value){
|
|
|
14728
14730
|
let i = 0;
|
|
14729
14731
|
row.children().map(function() {
|
|
14730
14732
|
var cell = jQuery(this);
|
|
14731
|
-
var colspan = Math.min(Number(cell.attr('colspan')), col);
|
|
14733
|
+
var colspan = Math.min(Number(cell.attr('colspan')), col || 1);
|
|
14732
14734
|
if (cell.hasClass('xexpand') &&
|
|
14733
14735
|
(!jQuery.isEmptyObject(cell.children())) &&
|
|
14734
14736
|
(cell.children(':not(.tooltip)').css('display') != 'none')) {
|
|
@@ -14748,7 +14750,7 @@ function eval_pyson(value){
|
|
|
14748
14750
|
var reduce = function(previous, current) {
|
|
14749
14751
|
var cell = current[0];
|
|
14750
14752
|
var colspan = Math.min(
|
|
14751
|
-
Number(cell.attr('colspan')), col);
|
|
14753
|
+
Number(cell.attr('colspan')), col || 1);
|
|
14752
14754
|
return previous + colspan;
|
|
14753
14755
|
};
|
|
14754
14756
|
return a.reduce(reduce, 0) - b.reduce(reduce, 0);
|
|
@@ -14763,7 +14765,8 @@ function eval_pyson(value){
|
|
|
14763
14765
|
for (const e of xexpands) {
|
|
14764
14766
|
var cell = e[0];
|
|
14765
14767
|
let i = e[1];
|
|
14766
|
-
const colspan = Math.min(
|
|
14768
|
+
const colspan = Math.min(
|
|
14769
|
+
Number(cell.attr('colspan')), col || 1);
|
|
14767
14770
|
var current_width = 0;
|
|
14768
14771
|
for (let j = 0; j < colspan; j++) {
|
|
14769
14772
|
current_width += widths[i + j] || 0;
|
|
@@ -14791,7 +14794,8 @@ function eval_pyson(value){
|
|
|
14791
14794
|
let i = 0;
|
|
14792
14795
|
for (let cell of row.children()) {
|
|
14793
14796
|
cell = jQuery(cell);
|
|
14794
|
-
const colspan = Math.min(
|
|
14797
|
+
const colspan = Math.min(
|
|
14798
|
+
Number(cell.attr('colspan')), col || 1);
|
|
14795
14799
|
if (cell.hasClass('xexpand') &&
|
|
14796
14800
|
(cell.children(':not(.tooltip)').css('display') !=
|
|
14797
14801
|
'none')) {
|
|
@@ -19741,6 +19745,9 @@ function eval_pyson(value){
|
|
|
19741
19745
|
'class': 'optional',
|
|
19742
19746
|
});
|
|
19743
19747
|
this.thead.children().prepend(th);
|
|
19748
|
+
if (this.tfoot) {
|
|
19749
|
+
this.tfoot.children().prepend(jQuery('<th/>'));
|
|
19750
|
+
}
|
|
19744
19751
|
}
|
|
19745
19752
|
var menu = jQuery('<ul/>', {
|
|
19746
19753
|
'class': 'dropdown-menu',
|
|
@@ -23040,7 +23047,9 @@ function eval_pyson(value){
|
|
|
23040
23047
|
}
|
|
23041
23048
|
},
|
|
23042
23049
|
insert_event: function(record) {
|
|
23043
|
-
var
|
|
23050
|
+
var description_fields = jQuery.extend([], this.fields);
|
|
23051
|
+
var title_field = description_fields.shift();
|
|
23052
|
+
var title = this.screen.model.fields[title_field].get_client(
|
|
23044
23053
|
record);
|
|
23045
23054
|
var field_start = record.model.fields[this.attributes.dtstart];
|
|
23046
23055
|
var date_start = field_start.get_client(record);
|
|
@@ -23060,7 +23069,7 @@ function eval_pyson(value){
|
|
|
23060
23069
|
model_access.write);
|
|
23061
23070
|
|
|
23062
23071
|
var description = [];
|
|
23063
|
-
for (const field of
|
|
23072
|
+
for (const field of description_fields) {
|
|
23064
23073
|
description.push(
|
|
23065
23074
|
this.screen.model.fields[field].get_client( record));
|
|
23066
23075
|
}
|
|
@@ -23713,6 +23722,9 @@ function eval_pyson(value){
|
|
|
23713
23722
|
this.__messages = new Set();
|
|
23714
23723
|
},
|
|
23715
23724
|
add: function(message, type) {
|
|
23725
|
+
if (!message) {
|
|
23726
|
+
return;
|
|
23727
|
+
}
|
|
23716
23728
|
var key = JSON.stringify([message, type]);
|
|
23717
23729
|
if (!this.__messages.has(key)) {
|
|
23718
23730
|
var infobar = jQuery('<div/>', {
|
|
@@ -25767,7 +25779,10 @@ function eval_pyson(value){
|
|
|
25767
25779
|
val, {'s': 1, 'm': 60, 'h': 60 * 60});
|
|
25768
25780
|
} else if (!isNaN(Number(val))) {
|
|
25769
25781
|
val = val.toLocaleString(
|
|
25770
|
-
Sao.i18n.BC47(Sao.i18n.getlang())
|
|
25782
|
+
Sao.i18n.BC47(Sao.i18n.getlang()), {
|
|
25783
|
+
'minimumFractionDigits': 0,
|
|
25784
|
+
'maximumFractionDigits': 20,
|
|
25785
|
+
});
|
|
25771
25786
|
}
|
|
25772
25787
|
} else if (val.isTimeDelta) {
|
|
25773
25788
|
val = val.asSeconds();
|
package/dist/tryton-sao.min.css
CHANGED
|
@@ -9164,9 +9164,10 @@ html[theme="default"] .carousel-caption h6 {
|
|
|
9164
9164
|
content: "";
|
|
9165
9165
|
background-color: rgba(0, 0, 0, 0);
|
|
9166
9166
|
}
|
|
9167
|
-
|
|
9168
|
-
overflow
|
|
9167
|
+
.btn-horizontal {
|
|
9168
|
+
overflow: hidden;
|
|
9169
9169
|
text-overflow: ellipsis;
|
|
9170
|
+
white-space: nowrap;
|
|
9170
9171
|
}
|
|
9171
9172
|
.input-group > .form-control-feedback {
|
|
9172
9173
|
z-index: 3;
|