mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-23 04:22:04 -06:00
[FIX] fix module name
This commit is contained in:
parent
8de978bb71
commit
140fa02533
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
###############################################################################
|
||||
#
|
||||
# file_buffer_from_mail for OpenERP
|
||||
# file_email for OpenERP
|
||||
# Copyright (C) 2012-TODAY Akretion <http://www.akretion.com>.
|
||||
# @author Sébastien BEAU <sebastien.beau@akretion.com>
|
||||
#
|
||||
@ -21,7 +21,7 @@
|
||||
###############################################################################
|
||||
|
||||
{
|
||||
'name': 'file_buffer_from_mail',
|
||||
'name': 'file_email',
|
||||
'version': '0.1',
|
||||
'category': 'Generic Modules/Others',
|
||||
'license': 'AGPL-3',
|
||||
@ -32,9 +32,9 @@
|
||||
""",
|
||||
'author': 'Akretion',
|
||||
'website': 'http://www.akretion.com/',
|
||||
'depends': ['file_buffer'],
|
||||
'depends': ['file_buffer'],
|
||||
'init_xml': [],
|
||||
'update_xml': [
|
||||
'update_xml': [
|
||||
],
|
||||
'demo_xml': [],
|
||||
'installable': True,
|
||||
|
@ -20,10 +20,10 @@
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
from openerp.osv import fields
|
||||
from openerp.osv.orm import Model
|
||||
from openerp.osv import fields, orm
|
||||
|
||||
class file_buffer(Model):
|
||||
|
||||
class file_buffer(orm.Model):
|
||||
_inherit = "file.buffer"
|
||||
|
||||
def _prepare_data_for_file_buffer(self, cr, uid, msg, context=None):
|
||||
@ -44,14 +44,8 @@ class file_buffer(Model):
|
||||
file_id = self.create(cr, uid, vals, context=context)
|
||||
self.create_file_buffer_attachment(cr, uid, file_id,
|
||||
datas, file_name,
|
||||
context=context,
|
||||
context=context,
|
||||
extension=vals['extension'])
|
||||
create_ids = file_id
|
||||
return create_ids
|
||||
return None
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user