[MIG] attachment_preview: Migration to 15.0

This commit is contained in:
vancouver29
2022-08-23 16:36:54 +02:00
parent 2c8d04f636
commit 51dbf6e827
14 changed files with 882 additions and 506 deletions

View File

@@ -12,14 +12,12 @@ class TestAttachmentPreview(TransactionCase):
{
"datas": base64.b64encode(b"from this, to that."),
"name": "doc.txt",
"datas_fname": "doc.txt",
}
)
attachment2 = self.env["ir.attachment"].create(
{
"datas": base64.b64encode(b"Png"),
"name": "image.png",
"datas_fname": "image.png",
}
)
res = self.env["ir.attachment"].get_attachment_extension(attachment.id)