mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-27 15:17:44 -06:00
[MIG] attachment_preview: Migration to 15.0
This commit is contained in:
committed by
Anjeel Haria
parent
5b7cf85c79
commit
3b5ec171bd
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user