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

[17.0][MIG] attachment_queue: Migration to 17.0 #3191

Open
wants to merge 56 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
1e35691
[REF] Rename to attachement_queue
sebastienbeau May 11, 2020
f25e35b
[REF] apply black on the code
sebastienbeau May 11, 2020
276b667
Update attachment_queue/__manifest__.py
sebastienbeau May 12, 2020
c170673
[UPD] Update attachment_queue.pot
oca-travis May 14, 2020
1496d69
[UPD] README.rst
OCA-git-bot May 14, 2020
62293a8
[UPD] Update attachment_queue.pot
oca-travis Aug 27, 2020
d61df5c
[FIX] fix incorrect view mode
sebastienbeau Oct 23, 2020
2582a9f
attachment_queue 12.0.1.0.1
OCA-git-bot Oct 23, 2020
4a7911e
[IMP] attachment_queue: pre-commit
kevinkhao Mar 4, 2021
aeeb218
[14.0][MIG] attachment_queue: migration to 14.0
kevinkhao Mar 4, 2021
23473f3
[IMP] Avoid using deprecated function _list, _delete and replace appr…
kevinkhao Mar 4, 2021
9b40d60
[IMP] Add superuser to running attachment queue
kevinkhao Jul 22, 2021
0270b1d
[UPD] Update attachment_queue.pot
Apr 15, 2022
1b3cff0
[UPD] README.rst
OCA-git-bot Apr 15, 2022
092349f
attachment_queue 14.0.1.0.1
OCA-git-bot Apr 15, 2022
20a7fa8
[16.0][MIG][REF] attachment_queue: Migration to 16.0
kevinkhao Feb 22, 2023
292606a
[IMP] attachment_queue multiple improvements :
florian-dacosta May 18, 2023
4f76f87
[IMP] attachment_queue : add possibility to re-schedule attachments i…
florian-dacosta May 18, 2023
dd04b67
[UPD] Update attachment_queue.pot
May 23, 2023
7b7c9d2
[UPD] README.rst
OCA-git-bot May 23, 2023
d71a572
[FIX] attachment_queue: adapt to fixed trap jobs helper
StefanRijnhart Jun 5, 2023
3912838
[IMP] attachment_queue: mute expected errors in test logs
StefanRijnhart Jun 5, 2023
c227113
attachment_queue 16.0.1.0.2
OCA-git-bot Jun 7, 2023
d0776b8
[UPD] Update attachment_queue.pot
Jun 7, 2023
ead8a0a
[IMP] Add index on attachment_queue
florian-dacosta Jun 26, 2023
09717a0
[UPD] Update attachment_queue.pot
Sep 1, 2023
36fe60c
[UPD] README.rst
OCA-git-bot Sep 3, 2023
f8eaebb
[BOT] post-merge updates
OCA-git-bot Oct 9, 2023
806c8a3
[FIX] attachment queue job description
florian-dacosta Oct 10, 2023
f04ea69
[BOT] post-merge updates
OCA-git-bot Oct 17, 2023
e1509d3
IMP attachment_queue: allow to add activity
bealdav Dec 20, 2023
581f93b
[UPD] Update attachment_queue.pot
Dec 25, 2023
bd00a7a
[BOT] post-merge updates
OCA-git-bot Dec 25, 2023
6e21315
Added translation using Weblate (Spanish)
Ivorra78 Dec 29, 2023
d282da9
Added translation using Weblate (Italian)
mymage Jan 2, 2024
b2357c1
Translated using Weblate (Spanish)
Ivorra78 Jan 2, 2024
6ef0e5a
Translated using Weblate (Italian)
mymage Jan 10, 2024
221695b
Translated using Weblate (Italian)
mymage Jan 22, 2024
3642c71
[UPD] Update attachment_queue.pot
Feb 2, 2024
817f18f
Update translation files
weblate Feb 2, 2024
ade297a
FIX attach_queue: state_message in form view
bealdav Feb 2, 2024
5eaff51
Translated using Weblate (Italian)
mymage Feb 5, 2024
48b081c
[BOT] post-merge updates
OCA-git-bot Feb 5, 2024
9997ed2
Translated using Weblate (Spanish)
Ivorra78 Feb 12, 2024
9a4838b
Translated using Weblate (Italian)
mymage Apr 4, 2024
beb2262
[UPD] Update attachment_queue.pot
May 24, 2024
9221138
Update translation files
weblate May 24, 2024
986cdb1
Translated using Weblate (Italian)
mymage May 28, 2024
fb9ead5
Translated using Weblate (Italian)
mymage Aug 17, 2024
97de7f6
Translated using Weblate (Italian)
mymage Sep 17, 2024
a496e33
[IMP] attachment_queue : Make automatic job retry working with attach…
florian-dacosta Sep 26, 2024
bf5d7f1
[FIX] attachment_queue : fix default channel name
florian-dacosta Sep 27, 2024
7530d90
[BOT] post-merge updates
OCA-git-bot Sep 30, 2024
4fe6391
Translated using Weblate (Italian)
mymage Jan 16, 2025
57ac5db
[IMP] attachment_queue: pre-commit auto fixes
rrebollo Feb 5, 2025
e8dd173
[MIG] attachment_queue: Migration to 17.0
rrebollo Feb 5, 2025
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
120 changes: 120 additions & 0 deletions attachment_queue/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
================
Attachment Queue
================

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

.. |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/licence-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/17.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-17-0/server-tools-17-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=17.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

.. image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/attachment_queue/static/description/tree.png
:alt: tree view

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

.. image:: https://raw.githubusercontent.com/OCA/server-tools/17.0/attachment_queue/static/description/form.png
:alt: form view

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:%2017.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 <[email protected]>
- Florian da Costa <[email protected]>
- Angel Moya <http://angelmoya.es>
- Dan Kiplangat <[email protected]>
- Kevin Khao <[email protected]>

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/17.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
23 changes: 23 additions & 0 deletions attachment_queue/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2015 Florian DA COSTA @ Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Attachment Queue",
"version": "17.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,
}
18 changes: 18 additions & 0 deletions attachment_queue/data/mail_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?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
Loading