Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][ADD] queue_job_chunk : backport from v16 #739

Draft
wants to merge 20 commits into
base: 14.0
Choose a base branch
from
Draft
Changes from 1 commit
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
Prev Previous commit
Next Next commit
queue_job_chunk: Migration to 16.0
sebastienbeau authored and Clément Mombereau committed Jan 20, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit c0a3dc6072ef633c344646e0447ad56553d239c8
4 changes: 2 additions & 2 deletions queue_job_chunk/__manifest__.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@

{
"name": "Job Queue Chunk",
"version": "14.0.1.0.1",
"version": "16.0.0.0.0",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-channel",
"license": "AGPL-3",
@@ -14,5 +14,5 @@
"security/security.xml",
"security/ir.model.access.csv",
],
"installable": False,
"installable": True,
}
12 changes: 5 additions & 7 deletions queue_job_chunk/models/queue_job_chunk.py
Original file line number Diff line number Diff line change
@@ -35,26 +35,24 @@ def _compute_reference(self):
rec.reference = False

# component fields
usage = fields.Char("Usage")
apply_on_model = fields.Char("Apply on model")
usage = fields.Char()
apply_on_model = fields.Char()

data_str = fields.Text(string="Editable data")
state = fields.Selection(
[("pending", "Pending"), ("done", "Done"), ("fail", "Failed")],
default="pending",
string="State",
)
state_info = fields.Text("Additional state information")
model_name = fields.Char("Model ID")
record_id = fields.Integer("Record ID")
model_name = fields.Char()
record_id = fields.Integer()
reference = fields.Reference(
string="Reference",
selection="_selection_target_model",
compute=_compute_reference,
store=True,
)
company_id = fields.Many2one("res.company", compute=_compute_reference, store=True)
stack_trace = fields.Text("Stack trace")
stack_trace = fields.Text()

@api.model_create_multi
def create(self, vals):