mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-25 01:48:41 -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",
|
||||
"version": "1.1",
|
||||
"author": "Therp BV",
|
||||
"author": "Therp BV,Odoo Community Association (OCA)",
|
||||
"license": "AGPL-3",
|
||||
"complexity": "normal",
|
||||
'summary': 'Preview attachments supported by Viewer.js',
|
||||
|
@ -49,8 +49,8 @@ class IrAttachment(Model):
|
||||
try:
|
||||
import magic
|
||||
ms = magic.open(
|
||||
hasattr(magic, 'MAGIC_MIME_TYPE')
|
||||
and magic.MAGIC_MIME_TYPE or magic.MAGIC_MIME)
|
||||
hasattr(magic, 'MAGIC_MIME_TYPE') and
|
||||
magic.MAGIC_MIME_TYPE or magic.MAGIC_MIME)
|
||||
ms.load()
|
||||
mimetype = ms.buffer(
|
||||
base64.b64decode(this[binary_field]))
|
||||
|
Loading…
Reference in New Issue
Block a user