changeset 9248240d492f in modules/timesheet:default
details: https://hg.tryton.org/modules/timesheet?cmd=changeset;node=9248240d492f
description:
        Add expand on tree view

        and unify layout of form view.

        issue8644
        review262131002
diffstat:

 view/hours_employee_monthly_tree.xml |  4 ++--
 view/hours_employee_tree.xml         |  4 ++--
 view/hours_employee_weekly_tree.xml  |  4 ++--
 view/line_tree.xml                   |  8 ++++----
 view/work_list.xml                   |  2 +-
 view/work_list_report.xml            |  4 ++--
 6 files changed, 13 insertions(+), 13 deletions(-)

diffs (79 lines):

diff -r 6be74380ab38 -r 9248240d492f view/hours_employee_monthly_tree.xml
--- a/view/hours_employee_monthly_tree.xml      Sat Sep 28 23:52:02 2019 +0200
+++ b/view/hours_employee_monthly_tree.xml      Sat Sep 28 23:59:10 2019 +0200
@@ -4,6 +4,6 @@
 <tree>
     <field name="year"/>
     <field name="month" widget="selection"/>
-    <field name="employee"/>
-    <field name="duration"/>
+    <field name="employee" expand="2"/>
+    <field name="duration" expand="1"/>
 </tree>
diff -r 6be74380ab38 -r 9248240d492f view/hours_employee_tree.xml
--- a/view/hours_employee_tree.xml      Sat Sep 28 23:52:02 2019 +0200
+++ b/view/hours_employee_tree.xml      Sat Sep 28 23:59:10 2019 +0200
@@ -2,6 +2,6 @@
 <!-- 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="employee"/>
-    <field name="duration" sum="Duration"/>
+    <field name="employee" expand="2"/>
+    <field name="duration" sum="Duration" expand="1"/>
 </tree>
diff -r 6be74380ab38 -r 9248240d492f view/hours_employee_weekly_tree.xml
--- a/view/hours_employee_weekly_tree.xml       Sat Sep 28 23:52:02 2019 +0200
+++ b/view/hours_employee_weekly_tree.xml       Sat Sep 28 23:59:10 2019 +0200
@@ -4,6 +4,6 @@
 <tree>
     <field name="year"/>
     <field name="week"/>
-    <field name="employee"/>
-    <field name="duration"/>
+    <field name="employee" expand="2"/>
+    <field name="duration" expand="1"/>
 </tree>
diff -r 6be74380ab38 -r 9248240d492f view/line_tree.xml
--- a/view/line_tree.xml        Sat Sep 28 23:52:02 2019 +0200
+++ b/view/line_tree.xml        Sat Sep 28 23:59:10 2019 +0200
@@ -2,10 +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 editable="top">
-    <field name="company"/>
-    <field name="employee"/>
+    <field name="company" expand="1"/>
+    <field name="employee" expand="2"/>
     <field name="date"/>
     <field name="duration" sum="Duration"/>
-    <field name="work" width="300"/>
-    <field name="description"/>
+    <field name="work" expand="1"/>
+    <field name="description" expand="2"/>
 </tree>
diff -r 6be74380ab38 -r 9248240d492f view/work_list.xml
--- a/view/work_list.xml        Sat Sep 28 23:52:02 2019 +0200
+++ b/view/work_list.xml        Sat Sep 28 23:59:10 2019 +0200
@@ -2,7 +2,7 @@
 <!-- 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="rec_name"/>
+    <field name="rec_name" expand="1"/>
     <field name="origin" tree_invisible="1"/>
     <field name="timesheet_start_date" tree_invisible="1"/>
     <field name="timesheet_end_date" tree_invisible="1"/>
diff -r 6be74380ab38 -r 9248240d492f view/work_list_report.xml
--- a/view/work_list_report.xml Sat Sep 28 23:52:02 2019 +0200
+++ b/view/work_list_report.xml Sat Sep 28 23:59:10 2019 +0200
@@ -2,7 +2,7 @@
 <!-- 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="rec_name"/>
-    <field name="duration"/>
+    <field name="rec_name" expand="2"/>
+    <field name="duration" expand="1"/>
     <field name="origin" tree_invisible="1"/>
 </tree>

Reply via email to