Skip to content

Commit

Permalink
[IMP] queue_job: add filter on Date Created
Browse files Browse the repository at this point in the history
  • Loading branch information
florentx committed Sep 17, 2024
1 parent 1788746 commit 90c45f6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions queue_job/views/queue_job_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,22 @@
string="Cancelled"
domain="[('state', '=', 'cancelled')]"
/>
<separator />
<filter
name="last_24_hours"
string="Last 24 hours"
domain="[('date_created', '&gt;=', (context_today() - datetime.timedelta(days=1)).strftime('%Y-%m-%d'))]"
/>
<filter
name="last_7_days"
string="Last 7 days"
domain="[('date_created', '&gt;=', (context_today() - datetime.timedelta(days=7)).strftime('%Y-%m-%d'))]"
/>
<filter
name="last_30_days"
string="Last 30 days"
domain="[('date_created', '&gt;=', (context_today() - datetime.timedelta(days=30)).strftime('%Y-%m-%d'))]"
/>
<group expand="0" string="Group By">
<filter
name="group_by_channel"
Expand Down Expand Up @@ -286,6 +302,11 @@
string="Graph"
context="{'group_by': 'graph_uuid'}"
/>
<filter
name="group_by_date_created"
string="Created date"
context="{'group_by': 'date_created'}"
/>
</group>
</search>
</field>
Expand Down

0 comments on commit 90c45f6

Please sign in to comment.