Bulk Attachment Tools
Select records in any list and download all their attachments as one ZIP with a folder per record, or upload a pile of files and let each one attach itself to the record its file name points at.
| Odoo | 16.0, 17.0, 18.0, 19.0, 20.0 |
| Editions | Community, Enterprise |
| Works with | Discuss (mail). The actions work on any model; the screenshots use Sales Orders. |
| Licence | OPL-1, 34 EUR |
| Tests | 31 automated, run on every version |
| Module | attachment_ |
The situation
Someone asks for every document of twelve sales orders. In standard Odoo you open each order, open its attachments and download the files one by one, and they all arrive as Quotation_signed.pdf, Quotation_signed (1).pdf and so on. The other way round is no better: a folder of scans named PO-4471_invoice.pdf, PO-4472_receipt.pdf has to be dragged onto the right order, one record at a time.
With the module you tick the orders in the list, open Actions and choose Download attachments (ZIP). You get one archive with a folder per order, named like S00001 (PO-4471), and the files inside it. In the other direction you open Upload and link files, pick the model and the field to read the file names against (Customer Reference), drop the files or one ZIP, check the preview and link them. Files that match two records or none are listed and left alone.
What it adds
Getting started
Open Apps, clear the Apps filter, search for Bulk Attachment Tools and click Activate. It needs Discuss (mail). Sales Orders, Purchase Orders, Journal Entries, Transfers, Contacts, Employees and Tasks get the two actions as soon as their apps are installed.
Apps › attachment_bulk_tools › Activate
Open Settings and find Bulk Attachment Tools. Models lists the models whose list views get the two actions; add or remove any model. Set Maximum size (MB) and Maximum files, and tick Note Downloads in Chatter if you want a note on each downloaded record.
Settings › General Settings › Bulk Attachment Tools
In a list view, tick the records and open Actions. Download attachments (ZIP) shows how many files and how many MB will be packed and downloads the archive. Upload and link files opens the matching wizard; the menu Bulk Attachments › Upload and link files opens it too, for models you pick there.
Fine print
Log
Can it match files on a field of our own model?
Tell us the model and the field and we will tell you if it fits.
Email odoo.expert.111@gmail.com
Also by Awins
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module