We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88df44d commit c223425Copy full SHA for c223425
queue_job_cron/models/ir_cron.py
@@ -28,13 +28,16 @@ class IrCron(models.Model):
28
comodel_name="queue.job.channel",
29
compute="_compute_run_as_queue_job",
30
readonly=False,
31
+ store=True,
32
string="Channel",
33
)
34
35
@api.depends("run_as_queue_job")
36
def _compute_run_as_queue_job(self):
37
for cron in self:
- if cron.run_as_queue_job and not cron.channel_id:
38
+ if cron.channel_id:
39
+ continue
40
+ if cron.run_as_queue_job:
41
cron.channel_id = self.env.ref("queue_job_cron.channel_root_ir_cron").id
42
else:
43
cron.channel_id = False
0 commit comments