mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-25 18:08:42 -06:00
Add OCA as author of OCA addons
In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association.
This commit is contained in:
parent
55a6b3b60c
commit
ecb10a90a2
@ -21,7 +21,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Preview attachments",
|
"name": "Preview attachments",
|
||||||
"version": "1.1",
|
"version": "1.1",
|
||||||
"author": "Therp BV",
|
"author": "Therp BV,Odoo Community Association (OCA)",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"complexity": "normal",
|
"complexity": "normal",
|
||||||
'summary': 'Preview attachments supported by Viewer.js',
|
'summary': 'Preview attachments supported by Viewer.js',
|
||||||
|
@ -49,8 +49,8 @@ class IrAttachment(Model):
|
|||||||
try:
|
try:
|
||||||
import magic
|
import magic
|
||||||
ms = magic.open(
|
ms = magic.open(
|
||||||
hasattr(magic, 'MAGIC_MIME_TYPE')
|
hasattr(magic, 'MAGIC_MIME_TYPE') and
|
||||||
and magic.MAGIC_MIME_TYPE or magic.MAGIC_MIME)
|
magic.MAGIC_MIME_TYPE or magic.MAGIC_MIME)
|
||||||
ms.load()
|
ms.load()
|
||||||
mimetype = ms.buffer(
|
mimetype = ms.buffer(
|
||||||
base64.b64decode(this[binary_field]))
|
base64.b64decode(this[binary_field]))
|
||||||
|
Loading…
Reference in New Issue
Block a user