Enhance the Submissions list view filter dropdown (view_aps_resource_submission_search_for_students) by adding quick filters that allow users to easily view resources created within common time periods.
Requirements
Add the following filters to the Filters dropdown in the Submissions list view:
-
Created Today
- Shows records where
create_date is today.
-
Created Yesterday
- Shows records where
create_date is yesterday.
-
Created This Week
- Shows records where
create_date falls within the current week.
-
Created Last Week
- Shows records where
create_date falls within the current week.
Implementation Notes
- Modify the search view for the Resources Submissionmodel.
- Use
create_date as the filtering field.
- Filters should appear in the Filters dropdown, not as group-by options.
- Ensure the filters respect the user's timezone where applicable.
- Follow standard Odoo search domain syntax.
Acceptance Criteria
-
The Resources list view contains three new filters:
- Created Today
- Created Yesterday
- Created This Week
- Created Last Week
-
Selecting a filter correctly limits records based on create_date.
-
Filters behave correctly across timezones.
-
Implementation follows Odoo 18 best practices.