purchase_request_department
This module adds department tracking to purchase requests by associating them with the requester's department and enabling grouping by department in views.
Key Features
- purchase.request: Adds a department field that defaults to the current user's department.
- purchase.request: Updates the department field automatically when the requested_by field is changed.
- purchase.request.line: Includes a read-only department field related to the parent request's department.
- purchase request views: Displays the department field in tree and form views with appropriate edit permissions.
- purchase request search: Provides a group by filter for department in search views.
- purchase request line views: Displays the department field in tree and form views.
- purchase request line search: Provides a group by filter for department in search views.