-- Go to Settings > Technical > Database Structure > Attachments and select some files.
-- Go to Actions > Download and a zip file containing the selected files will be downloaded.
+- Go to Settings > Technical > Database Structure > Attachments and
+select some files.
+- Go to Actions > Download and a zip file containing the selected
+files will be downloaded.
## For developer
-
You can reuse the IrAttachmentActionDownloadMixin on your
-favorite models:
+
You can reuse the IrAttachmentActionDownloadMixin on your favorite
+models:
from odoo import models
@@ -402,8 +405,8 @@ class StockPicking(models.Model):
_name = "stock.picking"
_inherit = ["stock.picking", "ir.attachment.action_download"]
-
Then you can add an action button on list view line or on the action button
-(when multiple lines are selected) to download all files:
+
Then you can add an action button on list view line or on the action
+button (when multiple lines are selected) to download all files:
<odoo>
<!--
@@ -444,10 +447,11 @@ class StockPicking(models.Model):
Note
-
Even you will be able to generate a zip file with multiple document with the
-same name it’s advice to overwrite _compute_zip_file_name to improve the
-name. When a slash (/) is present in the path it will create a directory.
-This example will create a directory per stock.picking using its name:
+
Even you will be able to generate a zip file with multiple document
+with the same name it’s advice to overwrite _compute_zip_file_name
+to improve the name. When a slash (/) is present in the path it will
+create a directory. This example will create a directory per
+stock.picking using its name:
class IrAttachment(models.Model):
_inherit = "ir.attachment"
@@ -471,7 +475,7 @@ class IrAttachment(models.Model):
Bugs are tracked on GitHub 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.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -497,11 +501,13 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
This module is maintained by the OCA.
-

+
+
+
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.
-
This module is part of the OCA/knowledge project on GitHub.
+
This module is part of the OCA/knowledge project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.