Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
11882 มุมมอง

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 :(

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 15
4452
0
มี.ค. 15
3486
0
เม.ย. 25
843
2
ม.ค. 24
2138
0
ก.ค. 22
1941