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).
|
||||
{
|
||||
"name": "Attachment Zipped Download",
|
||||
"version": "14.0.1.0.0",
|
||||
"version": "13.0.1.0.0",
|
||||
"category": "Tools",
|
||||
"website": "https://github.com/OCA/knowledge",
|
||||
"author": "Tecnativa, Odoo Community Association (OCA)",
|
||||
"license": "AGPL-3",
|
||||
"depends": ["base"],
|
||||
"data": [
|
||||
"views/ir_attachment_view.xml",
|
||||
],
|
||||
"data": ["views/ir_attachment_view.xml"],
|
||||
"installable": True,
|
||||
}
|
||||
|
@ -22,10 +22,7 @@ class TestAttachmentZippedDownload(odoo.tests.HttpCase):
|
||||
|
||||
def _create_attachment(self, name):
|
||||
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):
|
||||
|
@ -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