[FIX] fix module name

This commit is contained in:
Benoit Guillot 2013-04-03 17:47:11 +02:00
parent 8de978bb71
commit 140fa02533
2 changed files with 8 additions and 14 deletions

View File

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################### ###############################################################################
# #
# file_buffer_from_mail for OpenERP # file_email for OpenERP
# Copyright (C) 2012-TODAY Akretion <http://www.akretion.com>. # Copyright (C) 2012-TODAY Akretion <http://www.akretion.com>.
# @author Sébastien BEAU <sebastien.beau@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', 'version': '0.1',
'category': 'Generic Modules/Others', 'category': 'Generic Modules/Others',
'license': 'AGPL-3', 'license': 'AGPL-3',
@ -32,9 +32,9 @@
""", """,
'author': 'Akretion', 'author': 'Akretion',
'website': 'http://www.akretion.com/', 'website': 'http://www.akretion.com/',
'depends': ['file_buffer'], 'depends': ['file_buffer'],
'init_xml': [], 'init_xml': [],
'update_xml': [ 'update_xml': [
], ],
'demo_xml': [], 'demo_xml': [],
'installable': True, 'installable': True,

View File

@ -20,10 +20,10 @@
# #
############################################################################### ###############################################################################
from openerp.osv import fields from openerp.osv import fields, orm
from openerp.osv.orm import Model
class file_buffer(Model):
class file_buffer(orm.Model):
_inherit = "file.buffer" _inherit = "file.buffer"
def _prepare_data_for_file_buffer(self, cr, uid, msg, context=None): 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) file_id = self.create(cr, uid, vals, context=context)
self.create_file_buffer_attachment(cr, uid, file_id, self.create_file_buffer_attachment(cr, uid, file_id,
datas, file_name, datas, file_name,
context=context, context=context,
extension=vals['extension']) extension=vals['extension'])
create_ids = file_id create_ids = file_id
return create_ids return create_ids
return None return None