Don't hide column with unique value in tree view
The domain doesn't apply to the children of a tree view, so the unique value is only unique at the top-level. issue4973 review24391002
This commit is contained in:
1 parent
43dda96085
commit
6848037a3f
1 file changed
+1
-1
@@ -1078,7 +1078,7 @@ class ViewTree(View):
|
||||
if not isinstance(inv_domain, bool):
|
||||
inv_domain = simplify(inv_domain)
|
||||
unique, _, _ = unique_value(inv_domain)
|
||||
column.set_visible(not unique)
|
||||
column.set_visible(not unique or bool(self.children_field))
|
||||
|
||||
def set_state(self):
|
||||
record = self.screen.current_record
|
||||
|
||||
Reference in new issue
Block a user