Repository
OCA/server-tools · module folder · Try on Runboat
Module version
1.0.1
Category
Generic Modules
Folder size
0.23 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/server-tools
Last tracking update
2026-08-07 08:42:58
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
Stefan Rijnhart, Florian da Costa, David Beal, OCA-git-bot, oca-ci
Odoo dependencies
OCA/queue:
odoo/odoo:
- web
- bus
Python dependencies
openupgradelib, requests
System dependencies
None
Required by
attachment_synchronize
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.

Code Analysis

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…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
93 days ago
Last activity
60 days ago
Repository
OCA/server-tools
Pull request
[19.0][MIG] attachment_queue: Migration to 19.0 (#3614)