From 6330d31dbef00447647002e55fa33c207a8529ad Mon Sep 17 00:00:00 2001 From: Nidhi Patel Date: Wed, 20 May 2020 13:33:21 +0000 Subject: [PATCH] [FIX] hr_expense: Fix the 'To Pay' filter and remove unused actions Currently, In expense reports 'to pay' filter return data of state 'approved' and 'posted'. But the 'to pay' filter should only return expense reports whose state is 'post'. After this commit, the 'to pay' filter return only data of 'posted' state and also removed some unused actions. closes odoo/odoo#51638 Taskid: 2261481 Closes: #51638 Signed-off-by: Yannick Tivisse (yti) --- addons/hr_expense/views/hr_expense_views.xml | 46 +------------------- 1 file changed, 1 insertion(+), 45 deletions(-) diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index 4bdd5059ecc..c7512bec26c 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -412,24 +412,6 @@ - - - - Employee Expenses - hr.expense - tree,kanban,form,pivot,graph - - [] - {"search_default_approved": 1} - -

- No approved employee expenses -

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

-
-
- Unreported Expenses hr.expense @@ -446,16 +428,6 @@
- - Expenses Analysis - hr.expense - graph,pivot - { - 'search_default_approved': 1, - } - - - hr.expense.sheet.tree hr.expense.sheet @@ -665,7 +637,7 @@ - + @@ -841,22 +813,6 @@ - - Reports to Pay - hr.expense.sheet - tree,kanban,form,pivot,graph - {'search_default_approved': 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