mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-28 11:26:31 -06:00
[13.0][MIG] attachment_zipped_download: Backport from 14.0
This commit is contained in:
parent
e4c2ff0ff5
commit
62aaaa94c2
@ -2,14 +2,12 @@
|
|||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||||
{
|
{
|
||||||
"name": "Attachment Zipped Download",
|
"name": "Attachment Zipped Download",
|
||||||
"version": "14.0.1.0.0",
|
"version": "13.0.1.0.0",
|
||||||
"category": "Tools",
|
"category": "Tools",
|
||||||
"website": "https://github.com/OCA/knowledge",
|
"website": "https://github.com/OCA/knowledge",
|
||||||
"author": "Tecnativa, Odoo Community Association (OCA)",
|
"author": "Tecnativa, Odoo Community Association (OCA)",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"depends": ["base"],
|
"depends": ["base"],
|
||||||
"data": [
|
"data": ["views/ir_attachment_view.xml"],
|
||||||
"views/ir_attachment_view.xml",
|
|
||||||
],
|
|
||||||
"installable": True,
|
"installable": True,
|
||||||
}
|
}
|
||||||
|
@ -22,10 +22,7 @@ class TestAttachmentZippedDownload(odoo.tests.HttpCase):
|
|||||||
|
|
||||||
def _create_attachment(self, name):
|
def _create_attachment(self, name):
|
||||||
return self.env["ir.attachment"].create(
|
return self.env["ir.attachment"].create(
|
||||||
{
|
{"name": name, "datas": base64.b64encode(b"\xff data")}
|
||||||
"name": name,
|
|
||||||
"datas": base64.b64encode(b"\xff data"),
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_action_attachments_download(self):
|
def test_action_attachments_download(self):
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
../../../../attachment_zipped_download
|
6
setup/attachment_zipped_download/setup.py
Normal file
6
setup/attachment_zipped_download/setup.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user