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

        issue10989
        review374321002
diffstat:

 view/work_list.xml          |  9 +++++----
 view/work_list_children.xml |  6 +++---
 view/work_list_simple.xml   |  5 +++--
 view/work_status_list.xml   |  2 +-
 view/work_tree.xml          |  9 +++++----
 view/work_tree_simple.xml   |  5 +++--
 6 files changed, 20 insertions(+), 16 deletions(-)

diffs (90 lines):

diff -r 6c148c9a6d00 -r d580322c2ad6 view/work_list.xml
--- a/view/work_list.xml        Sat Dec 18 16:31:10 2021 +0100
+++ b/view/work_list.xml        Thu Feb 03 23:13:27 2022 +0100
@@ -2,10 +2,11 @@
 <!-- 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 sequence="sequence">
+    <field name="company" expand="1" optional="1"/>
     <field name="rec_name" expand="1"/>
-    <field name="timesheet_duration"/>
-    <field name="total_effort"/>
-    <field name="type"/>
+    <field name="timesheet_duration" optional="0"/>
+    <field name="total_effort" optional="0"/>
+    <field name="type" optional="1"/>
     <field name="status"/>
-    <field name="total_progress" widget="progressbar" expand="1"/>
+    <field name="total_progress" widget="progressbar" expand="1" optional="0"/>
 </tree>
diff -r 6c148c9a6d00 -r d580322c2ad6 view/work_list_children.xml
--- a/view/work_list_children.xml       Sat Dec 18 16:31:10 2021 +0100
+++ b/view/work_list_children.xml       Thu Feb 03 23:13:27 2022 +0100
@@ -3,8 +3,8 @@
 this repository contains the full copyright notices and license terms. -->
 <tree sequence="sequence">
     <field name="name" expand="1"/>
-    <field name="timesheet_duration"/>
-    <field name="total_effort"/>
-    <field name="type"/>
+    <field name="timesheet_duration" optional="0"/>
+    <field name="total_effort" optional="0"/>
+    <field name="type" optional="1"/>
     <field name="status"/>
 </tree>
diff -r 6c148c9a6d00 -r d580322c2ad6 view/work_list_simple.xml
--- a/view/work_list_simple.xml Sat Dec 18 16:31:10 2021 +0100
+++ b/view/work_list_simple.xml Thu Feb 03 23:13:27 2022 +0100
@@ -2,7 +2,8 @@
 <!-- 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="rec_name" expand="1"/>
-    <field name="type"/>
-    <field name="status"/>
+    <field name="type" optional="1"/>
+    <field name="status" optional="0"/>
 </tree>
diff -r 6c148c9a6d00 -r d580322c2ad6 view/work_status_list.xml
--- a/view/work_status_list.xml Sat Dec 18 16:31:10 2021 +0100
+++ b/view/work_status_list.xml Thu Feb 03 23:13:27 2022 +0100
@@ -3,6 +3,6 @@
 this repository contains the full copyright notices and license terms. -->
 <tree sequence="sequence">
     <field name="name"/>
-    <field name="types"/>
+    <field name="types" expand="1"/>
     <field name="default"/>
 </tree>
diff -r 6c148c9a6d00 -r d580322c2ad6 view/work_tree.xml
--- a/view/work_tree.xml        Sat Dec 18 16:31:10 2021 +0100
+++ b/view/work_tree.xml        Thu Feb 03 23:13:27 2022 +0100
@@ -3,9 +3,10 @@
 this repository contains the full copyright notices and license terms. -->
 <tree sequence="sequence">
     <field name="name" expand="1"/>
-    <field name="timesheet_duration"/>
-    <field name="total_effort"/>
-    <field name="type"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="timesheet_duration" optional="0"/>
+    <field name="total_effort" optional="0"/>
+    <field name="type" optional="1"/>
     <field name="status"/>
-    <field name="total_progress" widget="progressbar" expand="1"/>
+    <field name="total_progress" widget="progressbar" expand="1" optional="0"/>
 </tree>
diff -r 6c148c9a6d00 -r d580322c2ad6 view/work_tree_simple.xml
--- a/view/work_tree_simple.xml Sat Dec 18 16:31:10 2021 +0100
+++ b/view/work_tree_simple.xml Thu Feb 03 23:13:27 2022 +0100
@@ -3,6 +3,7 @@
 this repository contains the full copyright notices and license terms. -->
 <tree sequence="sequence">
     <field name="name" expand="1"/>
-    <field name="type"/>
-    <field name="status"/>
+    <field name="company" expand="1" optional="1"/>
+    <field name="type" optional="1"/>
+    <field name="status" optional="0"/>
 </tree>

Reply via email to