mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-27 07:17:43 -06:00
[MIG] attachment_preview: Migration to 15.0
This commit is contained in:
@@ -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