Odoo v8没有更新模块

时间:2014-10-22 04:13:09

标签: ubuntu erp odoo

我创建了新模块并更新了一些基本模块。但它没有表现出来。目前我正在使用Localhost:8069。

在Windows上我更新了Program Files(x86)/ Odoo 8.0-20141014-000207 / server / openerp / addons上的模块

在Ubuntu上我更新了/usr/lib/python2.7/dist-packages/openerp/addons

他们都没有更新任何内容。

初始化的.py

import daily_transaction.py

OpenERP的的.py

{
'name' : 'Daily Transaction Manager',
'version': '1.0',
'author': 'Billy James',
'category': 'Manager',
'complexity': 'easy',
'description': "The Module will manage our daily transaction where we'll keep a log of where and hwat money we have spent on a particular day.",
'depends': [],
'data': [
    'daily_transaction_view.xml',
],
'installable': True,
'auto_install': False,

}

daily_transaction.py

from openerp.osv import fields, osv

class daily_transaction(osv.osv):
    _name = "daily_transaction"
    _description = "Daily Transaction"


    _columns = {
        'subject': fields.char('Subject', size=128, required=True),
        'date': fields.date('Date', required=True),
        'note': fields.text('Notes'),
        'amount': fields.float('Amount', required=True),
        'type': fields.selection([
            ('transport', 'Transport'),
            ('household', 'Household'),
            ('personal', 'Personal'),
            ], required=True),

    }

我编译了所有py文件,发现没有错误。

1 个答案:

答案 0 :(得分:0)

用此替换openerp.py文件。

{
'name': 'Daily Transaction Manager',
'version': '1.0',
'category' : 'manager',
'author': 'Akhil',
'description': ''' This module records and manages the 
            daily transactions
        ===================================== ''',
'depends': [],
'demo': [],
'data': ['daily_transaction_view.xml'],
'installable': True,
'auto_install': False,
}