Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 10 months ago
  • Required by20/25
    2 modules depend on it
  • Maturity25/25
    In 5 Odoo series since 12.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

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
OCA/queue:
odoo/odoo:
- web
- bus
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 IDNameModelTypeStatus
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_id Many2one → ir.attachment
    help='Link to ir.attachment model ' ondelete='cascade' required=True args: 'ir.attachment'
  • date_done Datetime
  • failure_emails Char
    compute='_compute_failure_emails' help='Comma-separated list of email addresses to be notified in case offailure'
  • file_type Selection
    help='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=[]
  • state Selection
    default='pending' index='btree' readonly=False required=True args: [('pending', 'Pending'), ('done', 'Done'), ('failed', 'Failed')]
  • state_message Text
Public methods (6)
  • 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_ids Many2many → attachment.queue
    comodel_name='attachment.queue' default=<expr> string='Attachments'
Public methods (1)
  • reschedule(self)

Loading…

Loading…

Loading…

Loading…

Loading…