Skip to content

Commit

Permalink
[IMP] : black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienbeau committed Nov 20, 2020
1 parent e24ff4b commit c4a2b67
Show file tree
Hide file tree
Showing 16 changed files with 162 additions and 131 deletions.
2 changes: 0 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ exclude: |
# NOT INSTALLABLE ADDONS
^base_export_async/|
^base_import_async/|
^queue_job/|
^queue_job_cron/|
^queue_job_subscribe/|
^test_base_import_async/|
^test_queue_job/|
# END NOT INSTALLABLE ADDONS
# Files and folders generated by bots, to avoid loops
^setup/|/static/description/index\.html$|
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
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
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,
)
1 change: 1 addition & 0 deletions setup/test_queue_job/odoo/addons/test_queue_job
6 changes: 6 additions & 0 deletions setup/test_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,
)
4 changes: 2 additions & 2 deletions test_queue_job/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Queue Job Tests",
"version": "13.0.2.1.0",
"version": "14.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)",
"license": "LGPL-3",
"category": "Generic Modules",
Expand All @@ -14,5 +14,5 @@
"data/queue_job_function_data.xml",
"security/ir.model.access.csv",
],
"installable": False,
"installable": True,
}
Loading

0 comments on commit c4a2b67

Please sign in to comment.