[13.0][MIG] attachment_zipped_download: Backport from 14.0

This commit is contained in:
Héctor Villarreal Ortega 2022-07-04 11:33:35 +02:00 committed by Héctor Vi Or
parent e4c2ff0ff5
commit 62aaaa94c2
4 changed files with 10 additions and 8 deletions

View File

@ -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,
}

View File

@ -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):

View File

@ -0,0 +1 @@
../../../../attachment_zipped_download

View File

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)