changeset 582417077de0 in modules/timesheet:default
details: https://hg.tryton.org/modules/timesheet?cmd=changeset;node=582417077de0
description:
        Follow common rule to organize menu entries

        issue10118
        review347611002
diffstat:

 line.xml      |  35 +++++++++++++++++++++++++----------
 timesheet.xml |  20 ++++++++++++++++----
 work.xml      |  14 ++++++++++----
 3 files changed, 51 insertions(+), 18 deletions(-)

diffs (137 lines):

diff -r 01d1e0af4644 -r 582417077de0 line.xml
--- a/line.xml  Wed Feb 10 23:52:21 2021 +0100
+++ b/line.xml  Sat Feb 27 18:16:29 2021 +0100
@@ -29,8 +29,11 @@
             <field name="view" ref="line_view_form"/>
             <field name="act_window" ref="act_line_form"/>
         </record>
-        <menuitem parent="menu_timesheet" action="act_line_form"
-            id="menu_line_form" sequence="30"/>
+        <menuitem
+            parent="menu_timesheet"
+            action="act_line_form"
+            sequence="20"
+            id="menu_line_form"/>
 
         <record model="ir.action.act_window" id="act_line_form_work">
             <field name="name">Timesheet Lines</field>
@@ -92,8 +95,11 @@
             <field name="name">Enter Timesheet</field>
             <field name="wiz_name">timesheet.line.enter</field>
         </record>
-        <menuitem parent="menu_timesheet" action="act_line_enter"
-            id="menu_line_enter" sequence="20"/>
+        <menuitem
+            parent="menu_timesheet"
+            sequence="10"
+            action="act_line_enter"
+            id="menu_line_enter"/>
 
         <record model="ir.ui.view" id="hours_employee_view_tree">
             <field name="model">timesheet.hours_employee</field>
@@ -122,8 +128,11 @@
             <field name="view" ref="hours_employee_view_graph"/>
             <field name="act_window" ref="act_hours_employee_form"/>
         </record>
-        <menuitem parent="menu_reporting" action="act_hours_employee_form"
-            id="menu_hours_employee" sequence="20"/>
+        <menuitem
+            parent="menu_reporting"
+            action="act_hours_employee_form"
+            sequence="50"
+            id="menu_hours_employee"/>
 
         <record model="ir.rule.group" id="rule_group_hours_employee">
             <field name="name">Own employee hours</field>
@@ -170,8 +179,11 @@
             <field name="view" ref="hours_employee_weekly_view_tree"/>
             <field name="act_window" ref="act_hours_employee_weekly_form"/>
         </record>
-        <menuitem parent="menu_reporting" 
action="act_hours_employee_weekly_form"
-            id="menu_hours_employee_open_weekly" sequence="30"/>
+        <menuitem
+            parent="menu_reporting"
+            action="act_hours_employee_weekly_form"
+            sequence="50"
+            id="menu_hours_employee_open_weekly"/>
 
         <record model="ir.ui.view" id="hours_employee_monthly_view_tree">
             <field name="model">timesheet.hours_employee_monthly</field>
@@ -188,7 +200,10 @@
             <field name="view" ref="hours_employee_monthly_view_tree"/>
             <field name="act_window" ref="act_hours_employee_monthly_form"/>
         </record>
-        <menuitem parent="menu_reporting" 
action="act_hours_employee_monthly_form"
-            id="menu_hours_employee_open_monthly" sequence="40"/>
+        <menuitem
+            parent="menu_reporting"
+            action="act_hours_employee_monthly_form"
+            sequence="50"
+            id="menu_hours_employee_open_monthly"/>
     </data>
 </tryton>
diff -r 01d1e0af4644 -r 582417077de0 timesheet.xml
--- a/timesheet.xml     Wed Feb 10 23:52:21 2021 +0100
+++ b/timesheet.xml     Sat Feb 27 18:16:29 2021 +0100
@@ -17,14 +17,26 @@
             <field name="path">icons/tryton-timesheet.svg</field>
         </record>
 
-        <menuitem name="Timesheet" sequence="6" id="menu_timesheet" 
icon="tryton-timesheet"/>
-        <menuitem name="Configuration" parent="menu_timesheet" 
id="menu_configuration" sequence="10" icon="tryton-settings"/>
+        <menuitem
+            name="Timesheet"
+            sequence="100"
+            id="menu_timesheet"
+            icon="tryton-timesheet"/>
+        <menuitem
+            name="Configuration"
+            parent="menu_timesheet"
+            sequence="0"
+            id="menu_configuration"
+            icon="tryton-settings"/>
         <record model="ir.ui.menu-res.group"
             id="menu_configuration_group_timesheet_admin">
             <field name="menu" ref="menu_configuration"/>
             <field name="group" ref="group_timesheet_admin"/>
         </record>
-        <menuitem name="Reporting" parent="menu_timesheet"
-            id="menu_reporting" sequence="100"/>
+        <menuitem
+            name="Reporting"
+            parent="menu_timesheet"
+            sequence="100"
+            id="menu_reporting"/>
     </data>
 </tryton>
diff -r 01d1e0af4644 -r 582417077de0 work.xml
--- a/work.xml  Wed Feb 10 23:52:21 2021 +0100
+++ b/work.xml  Sat Feb 27 18:16:29 2021 +0100
@@ -42,8 +42,11 @@
             <field name="view" ref="work_view_form"/>
             <field name="act_window" ref="act_work_list"/>
         </record>
-        <menuitem parent="menu_configuration"
-            action="act_work_list" id="menu_work_list"/>
+        <menuitem
+            parent="menu_configuration"
+            action="act_work_list"
+            sequence="10"
+            id="menu_work_list"/>
 
         <record model="ir.action.act_window" id="act_work_report">
             <field name="name">Works</field>
@@ -62,8 +65,11 @@
             <field name="view" ref="work_view_graph"/>
             <field name="act_window" ref="act_work_report"/>
         </record>
-        <menuitem parent="menu_reporting" action="act_work_report"
-            id="menu_work_report" sequence="10"/>
+        <menuitem
+            parent="menu_reporting"
+            action="act_work_report"
+            sequence="10"
+            id="menu_work_report"/>
 
         <record model="ir.model.access" id="access_work">
             <field name="model" search="[('model', '=', 'timesheet.work')]"/>

Reply via email to