Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
5b4ddca
[REF] Rename to attachement_queue
sebastienbeau May 11, 2020
d5ca812
[REF] apply black on the code
sebastienbeau May 11, 2020
6f87b69
Update attachment_queue/__manifest__.py
sebastienbeau May 12, 2020
54c3549
[UPD] Update attachment_queue.pot
oca-travis May 14, 2020
5da8302
[UPD] README.rst
OCA-git-bot May 14, 2020
88f553b
[UPD] Update attachment_queue.pot
oca-travis Aug 27, 2020
a35dafe
[FIX] fix incorrect view mode
sebastienbeau Oct 23, 2020
35a4ab3
attachment_queue 12.0.1.0.1
OCA-git-bot Oct 23, 2020
6c817a6
[IMP] attachment_queue: pre-commit
kevinkhao Mar 4, 2021
44f0db2
[14.0][MIG] attachment_queue: migration to 14.0
kevinkhao Mar 4, 2021
a12ba49
[IMP] Avoid using deprecated function _list, _delete and replace appr…
kevinkhao Mar 4, 2021
a727271
[IMP] Add superuser to running attachment queue
kevinkhao Jul 22, 2021
802ca4a
[UPD] Update attachment_queue.pot
Apr 15, 2022
2709fa6
[UPD] README.rst
OCA-git-bot Apr 15, 2022
4d2dd40
attachment_queue 14.0.1.0.1
OCA-git-bot Apr 15, 2022
8ff7589
[16.0][MIG][REF] attachment_queue: Migration to 16.0
kevinkhao Feb 22, 2023
cb9461b
[IMP] attachment_queue multiple improvements :
florian-dacosta May 18, 2023
f6b080f
[IMP] attachment_queue : add possibility to re-schedule attachments i…
florian-dacosta May 18, 2023
d3b1940
[UPD] Update attachment_queue.pot
May 23, 2023
5d4b20f
[UPD] README.rst
OCA-git-bot May 23, 2023
51f788c
[FIX] attachment_queue: adapt to fixed trap jobs helper
StefanRijnhart Jun 5, 2023
fa77dde
[IMP] attachment_queue: mute expected errors in test logs
StefanRijnhart Jun 5, 2023
88419dd
attachment_queue 16.0.1.0.2
OCA-git-bot Jun 7, 2023
197cd11
[UPD] Update attachment_queue.pot
Jun 7, 2023
6e4323b
[IMP] Add index on attachment_queue
florian-dacosta Jun 26, 2023
dd89f13
[UPD] Update attachment_queue.pot
Sep 1, 2023
2b8808f
[UPD] README.rst
OCA-git-bot Sep 3, 2023
2abefc0
[BOT] post-merge updates
OCA-git-bot Oct 9, 2023
98d5750
[FIX] attachment queue job description
florian-dacosta Oct 10, 2023
dc737f0
[BOT] post-merge updates
OCA-git-bot Oct 17, 2023
d1930fc
IMP attachment_queue: allow to add activity
bealdav Dec 20, 2023
149286a
[UPD] Update attachment_queue.pot
Dec 25, 2023
d258c4b
[BOT] post-merge updates
OCA-git-bot Dec 25, 2023
f6c48ed
Added translation using Weblate (Spanish)
Ivorra78 Dec 29, 2023
965c785
Added translation using Weblate (Italian)
mymage Jan 2, 2024
91b11cf
Translated using Weblate (Spanish)
Ivorra78 Jan 2, 2024
033c9a4
Translated using Weblate (Italian)
mymage Jan 10, 2024
dc98b3c
Translated using Weblate (Italian)
mymage Jan 22, 2024
6b7fa55
[UPD] Update attachment_queue.pot
Feb 2, 2024
3d737a6
Update translation files
weblate Feb 2, 2024
088347a
FIX attach_queue: state_message in form view
bealdav Feb 2, 2024
ecd5320
Translated using Weblate (Italian)
mymage Feb 5, 2024
abdfa7b
[BOT] post-merge updates
OCA-git-bot Feb 5, 2024
152a185
Translated using Weblate (Spanish)
Ivorra78 Feb 12, 2024
8f8c07e
Translated using Weblate (Italian)
mymage Apr 4, 2024
8b32559
[UPD] Update attachment_queue.pot
May 24, 2024
a3af854
Update translation files
weblate May 24, 2024
f7954b3
Translated using Weblate (Italian)
mymage May 28, 2024
365b400
[IMP] attachment_queue : Make automatic job retry working with attach…
florian-dacosta Sep 26, 2024
bb85fa8
[FIX] attachment_queue : fix default channel name
florian-dacosta Sep 27, 2024
a06badf
[BOT] post-merge updates
OCA-git-bot Sep 30, 2024
3143c0e
Translated using Weblate (Italian)
mymage Jan 16, 2025
7e30494
[IMP] attachment_queue: pre-commit auto fixes
rrebollo Feb 5, 2025
d8c00c2
[MIG] attachment_queue: Migration to 17.0
rrebollo Feb 5, 2025
018f347
[UPD] Update attachment_queue.pot
May 13, 2025
a265f35
[BOT] post-merge updates
OCA-git-bot May 13, 2025
ec19661
[IMP] attachment_queue: pre-commit auto fixes
florian-dacosta Aug 6, 2025
08beb69
[MIG] mig attachment_queue to 18
florian-dacosta Aug 6, 2025
a9f35d0
[IMP] attachment_queue : change state as statusbar in form view
florian-dacosta Aug 6, 2025
4832fc4
[FIX] attachment_queue : mute warning logs in tests to avoid failure
florian-dacosta Sep 29, 2025
476b665
[UPD] Update attachment_queue.pot
Sep 30, 2025
7ccdb14
[BOT] post-merge updates
OCA-git-bot Sep 30, 2025
3434459
[UPD] Update attachment_queue.pot
Oct 1, 2025
dd2f74c
[IMP] attachment_synchronize : add migration script because of tree v…
florian-dacosta Oct 3, 2025
8ca6a8a
[BOT] post-merge updates
OCA-git-bot Oct 3, 2025
5c043fe
[REF] attachment_queue: use FakeModuleLoader in setUp, not setUpClass
StefanRijnhart Feb 19, 2026
c62d8c8
[BOT] post-merge updates
OCA-git-bot Feb 20, 2026
3d2e4b2
[MIG] attachment_queue: Migration to 19.0
dnplkndll May 19, 2026
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
125 changes: 125 additions & 0 deletions attachment_queue/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

================
Attachment Queue
================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:872bf341131657a1bdefbf1672685671ad40af2f9f23886b2b3c19b03e879e7e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
:target: https://github.com/OCA/server-tools/tree/19.0/attachment_queue
:alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-tools-19-0/server-tools-19-0-attachment_queue
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

**Table of contents**

.. contents::
:local:

Usage
=====

Go the menu Settings > Technical > Database Structure > Attachments
Queue

You can create / see standard attachments with additional fields

Configure the batch limit for attachments that can be sync by the cron
task at a go:

Settings > Technical > System parameters >
attachment_queue_cron_batch_limit

|tree view|

This module can be used in combination with attachment_synchronize to
control file processing workflow

|form view|

.. |tree view| image:: https://raw.githubusercontent.com/OCA/server-tools/19.0/attachment_queue/static/description/tree.png
.. |form view| image:: https://raw.githubusercontent.com/OCA/server-tools/19.0/attachment_queue/static/description/form.png

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20attachment_queue%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Akretion

Contributors
------------

- Valentin CHEMIERE <valentin.chemiere@akretion.com>
- Florian da Costa <florian.dacosta@akretion.com>
- Angel Moya <http://angelmoya.es>
- Dan Kiplangat <dan@sunflowerweb.nl>
- Kevin Khao <kevin.khao@akretion.com>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-florian-dacosta| image:: https://github.com/florian-dacosta.png?size=40px
:target: https://github.com/florian-dacosta
:alt: florian-dacosta
.. |maintainer-sebastienbeau| image:: https://github.com/sebastienbeau.png?size=40px
:target: https://github.com/sebastienbeau
:alt: sebastienbeau

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-florian-dacosta| |maintainer-sebastienbeau|

This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/19.0/attachment_queue>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions attachment_queue/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
28 changes: 28 additions & 0 deletions attachment_queue/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2015 Florian DA COSTA @ Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Attachment Queue",
"version": "19.0.1.0.0",
"author": "Akretion,Odoo Community Association (OCA)",
"summary": "Base module adding the concept of queue for processing files",
"website": "https://github.com/OCA/server-tools",
"maintainers": ["florian-dacosta", "sebastienbeau"],
"license": "AGPL-3",
"category": "Generic Modules",
"depends": ["base", "mail", "queue_job"],
"data": [
"views/attachment_queue_view.xml",
"security/ir.model.access.csv",
"data/mail_template.xml",
"data/queue_job_channel.xml",
"wizards/attachement_queue_reschedule.xml",
],
"demo": ["demo/attachment_queue.xml"],
"installable": True,
"external_dependencies": {
"python": [
"openupgradelib",
],
},
}
16 changes: 16 additions & 0 deletions attachment_queue/data/mail_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="attachment_failure_notification" model="mail.template">
<field name="email_to">{{object.failure_emails}}</field>
<field name="name">Attachment Failure notification</field>
<field name="subject">The attachment {{object.name}} has failed</field>
<field name="model_id" ref="attachment_queue.model_attachment_queue" />
<field
name="body_html"
><![CDATA[
<p style="margin:0px 0px 10px 0px;font-size:13px;font-family:&quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif;">Hello,<br><br></p>
<p style="margin:0px 0px 10px 0px;font-size:13px;font-family:&quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif;">The attachment {{object.name}} has failed with the following error message : <br>{{object.state_message}}<br></p><p style="margin:0px 0px 10px 0px;font-size:13px;font-family:&quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif;"></p>
<p style="margin:0px 0px 10px 0px;font-size:13px;font-family:&quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif;">Regards,<br></p>
]]></field>
</record>
</odoo>
7 changes: 7 additions & 0 deletions attachment_queue/data/queue_job_channel.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="attachment_queue_job_channel" model="queue.job.channel">
<field name="name">attachment_queue</field>
<field name="parent_id" ref="queue_job.channel_root" />
</record>
</odoo>
6 changes: 6 additions & 0 deletions attachment_queue/demo/attachment_queue.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="dummy_attachment_queue" model="attachment.queue">
<field name="name">Dummy file Used for unitests</field>
</record>
</odoo>
Loading