Health
90/100
good
-
Security25/25No findings
-
Activity20/25Last human commit 10 months ago
-
Required by20/252 modules depend on it
-
Maturity25/25In 5 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
2 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.23 MB
Module directory on disk
Code analysis
1 migration note
2 models
4 views
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `SELECT id FROM attachment_queue WHERE id = %s FOR UPDATE NOWAIT` - re-check the table/column names still match after upgrading. (2 occurrences in this file) migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module adds async processing capabilities to attachments by implementing a new model attachment.queue that wraps attachments and stores additional information so that it can be processed in an asynchronous way.
A use case of this module can be found in the attachment_synchronize module.
Dependencies
- Odoo dependencies
- Python dependencies
- openupgradelib, requests
- System dependencies
- None
- Required by
- attachment_queue_email, attachment_synchronize
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_attachment_queue_form |
attachment.queue | form | Inherits base.view_attachment_form | |
view_attachment_queue_list |
attachment.queue | list | New | |
view_attachment_queue_search |
attachment.queue | search | New | |
view_reschedule_attachment |
Reschedule Attachments | attachment.queue.reschedule | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (6)
-
attachment_idMany2one → ir.attachmenthelp='Link to ir.attachment model 'ondelete='cascade'required=True args: 'ir.attachment' -
date_doneDatetime -
failure_emailsCharcompute='_compute_failure_emails'help='Comma-separated list of email addresses to be notified in case offailure' -
file_typeSelectionhelp='The file type determines an import method to be used to parse and transform data before their import in ERP or an export'index='btree'selection=[] -
stateSelectiondefault='pending'index='btree'readonly=Falserequired=True args: [('pending', 'Pending'), ('done', 'Done'), ('failed', 'Failed')] -
state_messageText
-
button_manual_run(self)Run the process for an individual attachment queue from a dedicated button -
button_reschedule(self) -
create(self, vals_list)@api.model_create_multi -
run(self)Run the process for an individual attachment queue -
run_as_job(self)Run the process for an individual attachment queue from a async job -
set_done(self)Manually set to done
New fields (1)
-
attachment_idsMany2many → attachment.queuecomodel_name='attachment.queue'default=<expr>string='Attachments'
-
reschedule(self)
Loading…
Loading…
Loading…
Loading…
Loading…