Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ exclude: |
# NOT INSTALLABLE ADDONS
^base_export_async/|
^base_import_async/|
^queue_job/|
^queue_job_cron/|
^queue_job_subscribe/|
^test_base_import_async/|
Expand Down
6 changes: 3 additions & 3 deletions queue_job/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

{
"name": "Job Queue",
"version": "13.0.3.2.0",
"version": "14.0.1.0.0",
"author": "Camptocamp,ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/queue/queue_job",
"website": "https://github.com/OCA/queue",
"license": "LGPL-3",
"category": "Generic Modules",
"depends": ["mail"],
Expand All @@ -17,7 +17,7 @@
"data/queue_data.xml",
"data/queue_job_function_data.xml",
],
"installable": False,
"installable": True,
"development_status": "Mature",
"maintainers": ["guewen"],
"post_init_hook": "post_init_hook",
Expand Down
2 changes: 1 addition & 1 deletion queue_job/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def __init__(
channel=None,
identity_key=None,
):
""" Create a Job
"""Create a Job

:param func: function to execute
:type func: function
Expand Down
2 changes: 1 addition & 1 deletion queue_job/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def with_delay(
channel=None,
identity_key=None,
):
""" Return a ``DelayableRecordset``
"""Return a ``DelayableRecordset``

The returned instance allows to enqueue any method of the recordset's
Model.
Expand Down
5 changes: 4 additions & 1 deletion queue_job/models/ir_model_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@
class IrModelFields(models.Model):
_inherit = "ir.model.fields"

ttype = fields.Selection(selection_add=[("job_serialized", "Job Serialized")])
ttype = fields.Selection(
selection_add=[("job_serialized", "Job Serialized")],
ondelete={"job_serialized": "cascade"},
)
9 changes: 7 additions & 2 deletions queue_job/models/queue_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ class QueueJob(models.Model):
# actions), can be removed (replaced by "records") in 14.0
record_ids = JobSerialized(compute="_compute_record_ids", base_type=list)
records = JobSerialized(
string="Record(s)", readonly=True, base_type=models.BaseModel,
string="Record(s)",
readonly=True,
base_type=models.BaseModel,
)
args = JobSerialized(readonly=True, base_type=tuple)
kwargs = JobSerialized(readonly=True, base_type=dict)
Expand Down Expand Up @@ -522,7 +524,10 @@ def _default_channel(self):
return self.env.ref("queue_job.channel_root")

name = fields.Char(
compute="_compute_name", inverse="_inverse_name", index=True, store=True,
compute="_compute_name",
inverse="_inverse_name",
index=True,
store=True,
)

# model and method should be required, but the required flag doesn't
Expand Down
2 changes: 2 additions & 0 deletions queue_job/security/ir.model.access.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_queue_job_manager,queue job manager,queue_job.model_queue_job,queue_job.group_queue_job_manager,1,1,1,1
access_queue_job_function_manager,queue job functions manager,queue_job.model_queue_job_function,queue_job.group_queue_job_manager,1,1,1,1
access_queue_job_channel_manager,queue job channel manager,queue_job.model_queue_job_channel,queue_job.group_queue_job_manager,1,1,1,1
access_queue_jobs_to_done,access_queue_jobs_to_done,model_queue_jobs_to_done,queue_job.group_queue_job_manager,1,1,1,1
access_queue_requeue_job,access_queue_requeue_job,model_queue_requeue_job,queue_job.group_queue_job_manager,1,1,1,1
238 changes: 125 additions & 113 deletions queue_job/static/description/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion queue_job_cron/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Scheduled Actions as Queue Jobs",
"version": "13.0.2.1.0",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/queue/tree/12.0/queue_job_cron",
"website": "https://github.com/OCA/queue",
"license": "AGPL-3",
"category": "Generic Modules",
"depends": ["queue_job"],
Expand Down
2 changes: 1 addition & 1 deletion queue_job_subscribe/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "Queue Job Subscribe",
"version": "13.0.1.0.0",
"author": "Acsone SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/queue_job",
"website": "https://github.com/OCA/queue",
"summary": "Control which users are subscribed to queue job notifications",
"license": "AGPL-3",
"category": "Generic Modules",
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# generated from manifests external_dependencies
requests
1 change: 1 addition & 0 deletions setup/queue_job/odoo/addons/queue_job
6 changes: 6 additions & 0 deletions setup/queue_job/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)