[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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user