Add optional column on tree view

issue10989
review374321002
This commit is contained in:
Cédric Krier committed 2022-02-03 23:13:26 +01:00
1 parent 57ea78d0fe
commit 785c1296f3
4 files changed
+11 -7

No files matched your search

+1 -1
View File
@@ -3,6 +3,6 @@
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='reference']" position="after">
<field name="work_center"/>
<field name="work_center" optional="1"/>
</xpath>
</data>
+3 -2
View File
@@ -3,6 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="rec_name" expand="2"/>
<field name="category" expand="1"/>
<field name="warehouse" tree_invisible="1"/>
<field name="category" expand="1" optional="0"/>
<field name="company" expand="1" optional="1"/>
<field name="warehouse" expand="1" optional="1"/>
</tree>
+3 -2
View File
@@ -3,6 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="name" expand="2"/>
<field name="category" expand="1"/>
<field name="warehouse" tree_invisible="1"/>
<field name="category" expand="1" optional="0"/>
<field name="company" expand="1" optional="1"/>
<field name="warehouse" expand="1" optional="1"/>
</tree>
+4 -2
View File
@@ -2,8 +2,10 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tree>
<field name="company" expand="1" optional="1"/>
<field name="warehouse" expand="1" optional="1"/>
<field name="production" expand="1"/>
<field name="operation" expand="1"/>
<field name="work_center" expand="1"/>
<field name="operation" expand="1" optional="0"/>
<field name="work_center" expand="1" optional="0"/>
<field name="state"/>
</tree>