From 1bf327d9854044f285ef6c95bd13e980ad7e5f97 Mon Sep 17 00:00:00 2001
From: Yannick Tivisse
Date: Thu, 18 Aug 2016 10:03:53 +0200
Subject: [PATCH 1/4] [IMP] hr_expense: Reorganize menuitems usability wise
---
addons/hr_expense/views/hr_expense_views.xml | 110 +++++++------------
1 file changed, 38 insertions(+), 72 deletions(-)
diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml
index 830e87fb3a7..c17198405d4 100644
--- a/addons/hr_expense/views/hr_expense_views.xml
+++ b/addons/hr_expense/views/hr_expense_views.xml
@@ -1,5 +1,6 @@
+
hr.expense.tree
hr.expense
@@ -187,7 +188,7 @@
All Expenses
hr.expense
- tree,kanban,form,graph,pivot
+ pivot,graph,tree,kanban,form
@@ -204,26 +205,6 @@
-
- My Expenses
- hr.expense
- tree,kanban,form,graph,pivot
-
- [('employee_id.user_id', '=', uid)]
- {'show_report': True}
-
-
- The steps to process expenses are:
-
- - You record expenses,
- - Periodically, you submit expenses report to your manager,
- - Once approved, your expense report, goes to the accounting,
- - The accountant validates entries and reimburse you.
-
-
-
-
-
My Expenses to Report
hr.expense
@@ -244,25 +225,24 @@
-
-
- tree
-
-
-
-
-
-
- kanban
-
-
-
-
-
-
- form
-
-
+
+ Refused Expenses
+ hr.expense
+ tree,kanban,form,graph,pivot
+
+ [('employee_id.user_id', '=', uid)]
+ {'search_default_refused': 1}
+
+
+ The steps to process expenses are:
+
+ - You record expenses,
+ - Periodically, you submit expenses report to your manager,
+ - Once approved, your expense report, goes to the accounting,
+ - The accountant validates entries and reimburse you.
+
+
+
@@ -578,6 +558,7 @@
+
@@ -585,22 +566,6 @@
-
- My Reports
- hr.expense.sheet
- tree,kanban,form,pivot,graph
-
- [('employee_id.user_id', '=', uid)]
- {'search_default_submitted': 1}
-
-
- Click here to create a new expense report.
-
- Once you have created your expense, submit it to your manager who will validate it.
-
-
-
-
My Reports
hr.expense.sheet
@@ -668,7 +633,7 @@
My Reports
hr.expense.sheet
- tree,kanban,form,pivot,graph
+ pivot,graph,tree,kanban,form
[]
{}
@@ -778,23 +743,24 @@
-
-
-
+
+
+
+
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+