[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) <bedo@odoo.com>
This commit is contained in:
ravb-odoo
2023-12-06 16:12:26 +00:00
parent f8c2efc012
commit e3ddf17bef
@@ -1209,6 +1209,7 @@
'default_department_id': active_id
}
</field>
<field name="domain">[('state', '=', 'submit')]</field>
</record>
<record id="action_hr_expense_sheet_department_filtered" model="ir.actions.act_window">