From bd8e6edb1d3d7ad95eec6e03aa00d480228c9b61 Mon Sep 17 00:00:00 2001 From: shs-odoo Date: Mon, 1 Jun 2020 07:39:08 +0000 Subject: [PATCH] [IMP] hr_expense: Imporve the display of expense banner currently, the expense banner is displayed on to many menus like: 'expense report > to Pay, to Post'. so in this commit,the banner should only be visible in the 'My Expenses' and 'My Expense Reports' menus. and also removed some unused action from hr_expense. closes odoo/odoo#52241 Taskid: 2267850 Closes: #52241 Signed-off-by: Yannick Tivisse (yti) --- addons/hr_expense/views/hr_expense_views.xml | 63 +++++--------------- 1 file changed, 15 insertions(+), 48 deletions(-) diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index 2ef7df2cf51..a43642472bb 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -64,6 +64,19 @@ + + hr.expense.tree + hr.expense + 20 + + primary + + + hr_expense_tree_dashboard + + + + hr.expense.view.form hr.expense @@ -295,6 +308,7 @@ hr.expense tree,kanban,form,graph,pivot,activity + {'search_default_my_expenses': 1, 'search_default_no_report': 1}

@@ -421,22 +435,6 @@ - - Unreported Expenses - hr.expense - tree,kanban,form,pivot,graph - - [] - {"search_default_unsubmitted": 1} - -

- No unreported employee expenses -

- From here the accountant will be able to approve as well as refuse the expenses which are verified by the HR Manager. -

-
-
- hr.expense.sheet.tree hr.expense.sheet @@ -461,6 +459,7 @@ hr.expense.sheet.dashboard.tree hr.expense.sheet + 20 primary @@ -792,38 +791,6 @@ - - Reports to Approve - hr.expense.sheet - tree,kanban,form,pivot,graph - {'search_default_submitted': 1} - - - -

- Create a new expense -

- Once you have created your expense, submit it to your manager who will validate it. -

-
-
- - - Reports to Post - hr.expense.sheet - tree,kanban,form,pivot,graph - {'search_default_to_post': 1} - - - -

- Create a new expense -

- Once you have created your expense, submit it to your manager who will validate it. -

-
-
- Expense Reports to Approve hr.expense.sheet