From 6b2f3c4f88589ff47fbf0942685894f30bf1b4c2 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Mon, 26 May 2025 15:24:51 +0200 Subject: [PATCH] [IMP] queue_job: add Priority to Group-By and search --- queue_job/models/queue_job.py | 2 +- queue_job/views/queue_job_views.xml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/queue_job/models/queue_job.py b/queue_job/models/queue_job.py index 0af77c2559..97b187b7df 100644 --- a/queue_job/models/queue_job.py +++ b/queue_job/models/queue_job.py @@ -92,7 +92,7 @@ class QueueJob(models.Model): func_string = fields.Char(string="Task", readonly=True) state = fields.Selection(STATES, readonly=True, required=True, index=True) - priority = fields.Integer() + priority = fields.Integer(group_operator=False) exc_name = fields.Char(string="Exception", readonly=True) exc_message = fields.Char(string="Exception Message", readonly=True, tracking=True) exc_info = fields.Text(string="Exception Info", readonly=True) diff --git a/queue_job/views/queue_job_views.xml b/queue_job/views/queue_job_views.xml index f4b1d855c2..79aec95bc2 100644 --- a/queue_job/views/queue_job_views.xml +++ b/queue_job/views/queue_job_views.xml @@ -166,6 +166,7 @@ /> + @@ -210,6 +211,7 @@ + @@ -282,6 +284,11 @@ string="State" context="{'group_by': 'state'}" /> +