From e3ddf17bef8cebc3f5b0c1dd3e6fe54ac957238b Mon Sep 17 00:00:00 2001 From: ravb-odoo Date: Tue, 17 Oct 2023 17:18:20 +0530 Subject: [PATCH] [FIX] hr_expense: correct domain to compute expense report Steps to reproduce: - open kanban view of department in employee module. - click on 'Expense Report'. Issue: - When viewing the department's expense in the employee module, all department data is displayed, regardless of the department selection. Solution: - The issue is resolved by correcting the domain, ensuring that only data related to the selected department is displayed. This adjustment results in accurate department-specific request information. Task-3541358 closes odoo/odoo#145042 X-original-commit: 89b04551465ff323eed08afb6e0bbcb944724254 Related: odoo/enterprise#52156 Signed-off-by: Bertrand Dossogne (bedo) --- addons/hr_expense/views/hr_expense_views.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index ea0be8c9024..2430fe85dbf 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -1209,6 +1209,7 @@ 'default_department_id': active_id } + [('state', '=', 'submit')]