Count optional column as visible if the tree is not traggable

This commit is contained in:
Cédric Krier committed 2023-04-28 12:52:09 +02:00
1 parent 960c220329
commit c03923f88b
1 file changed
+3
+3
View File
@@ -794,6 +794,9 @@
// Set column visibility depending on attributes and domain
var visible_columns = 1; // start at 1 because of the checkbox
if (this.optionals.length && !this.draggable) {
visible_columns += 1;
}
var domain = [];
if (!jQuery.isEmptyObject(this.screen.domain)) {
domain.push(this.screen.domain);