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:
Alexandre Fayolle 2015-03-02 17:25:08 +01:00 committed by anusrinps96
parent 55a6b3b60c
commit ecb10a90a2
2 changed files with 3 additions and 3 deletions

View File

@ -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',

View File

@ -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]))