跳至内容
菜单
此问题已终结
1 回复
11895 查看

I racked my head trying to load a simple module that I'm developing but it doesn't work. Nothing happens when I start open-server script. The custom module doesn't show on the Settings>Apps

This is the __openerp__.py content:

{
    "name" : "Travel agency module",
    "version" : "1.0",
    "author" : "Tiny",
    "category" : "Generic Modules/Others",
    "description": "Juste a test module",
    "depends" : ["base"],
    "init_xml" : [],
    "data" : ["travel_view.xml"],
    "active": True,
    "installable": True
}

this is the travel.py content file:

from osv import osv, fields

class travel_hostel(osv.osv):
       _name = 'travel.hostel'
       _inherit = 'res.partner'
       _columns = {
       'quality': fields.char('Quality', size=16),
       }
       _defaults = {
       }

travel_hostel()
形象
丢弃
最佳答案

Hi,

Settings>>Modules>>Update Modules List

https://accounts.openerp.com/forum/Help-1/question/16336#16338

形象
丢弃
编写者

Thank you! This trick is not in the development documentation :(

相关帖文 回复 查看 活动
2
3月 15
4456
0
3月 15
3487
0
4月 25
848
2
1月 24
2141
0
7月 22
1946