Skip to content

Add a new filter to filters dropdown for the Submission list to show Submission records created today, yesterday, this week, last week #19

@agrogers

Description

@agrogers

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:

  1. Created Today

    • Shows records where create_date is today.
  2. Created Yesterday

    • Shows records where create_date is yesterday.
  3. Created This Week

    • Shows records where create_date falls within the current week.
  4. 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.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions