changeset 3aa665924244 in modules/company:default
details: https://hg.tryton.org/modules/company?cmd=changeset&node=3aa665924244
description:
        Add optional column on tree view

        issue10989
        review374321002
diffstat:

 view/company_list.xml  |  2 ++
 view/employee_tree.xml |  8 ++++----
 view/sequence_tree.xml |  2 +-
 3 files changed, 7 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 733c0bd72084 -r 3aa665924244 view/company_list.xml
--- a/view/company_list.xml     Sat Dec 18 16:31:07 2021 +0100
+++ b/view/company_list.xml     Thu Feb 03 23:13:26 2022 +0100
@@ -3,4 +3,6 @@
 this repository contains the full copyright notices and license terms. -->
 <tree>
     <field name="party" expand="1"/>
+    <field name="currency" optional="1"/>
+    <field name="timezone" optional="1"/>
 </tree>
diff -r 733c0bd72084 -r 3aa665924244 view/employee_tree.xml
--- a/view/employee_tree.xml    Sat Dec 18 16:31:07 2021 +0100
+++ b/view/employee_tree.xml    Thu Feb 03 23:13:26 2022 +0100
@@ -3,8 +3,8 @@
 this repository contains the full copyright notices and license terms. -->
 <tree>
     <field name="party" expand="1"/>
-    <field name="company" expand="1"/>
-    <field name="supervisor" expand="1"/>
-    <field name="start_date"/>
-    <field name="end_date"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="supervisor" expand="1" optional="1"/>
+    <field name="start_date" optional="1"/>
+    <field name="end_date" optional="1"/>
 </tree>
diff -r 733c0bd72084 -r 3aa665924244 view/sequence_tree.xml
--- a/view/sequence_tree.xml    Sat Dec 18 16:31:07 2021 +0100
+++ b/view/sequence_tree.xml    Thu Feb 03 23:13:26 2022 +0100
@@ -3,6 +3,6 @@
 this repository contains the full copyright notices and license terms. -->
 <data>
     <xpath expr="//field[@name='sequence_type']" position="after">
-        <field name="company" expand="1"/>
+        <field name="company" expand="1" optional="1"/>
     </xpath>
 </data>

Reply via email to