Openerp/getting started

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา

ขั้นตอนเริ่มต้น

  • สร้าง database ใหม่
  • เข้าใช้เป็น admin
    • ตั้ง Time zone
    • เปิด Technical Features: Users/Users => Administrator => Edit => Access Rights => Technical Features
    • Log out / log in (จะเห็นเมนูเพิ่มขึ้น)

สร้างโมดูล

เอกสารอ้างอิง Help page, [1], Technical Memento
  • สร้างไดเร็กทอรีใน openerp/addons ชื่อตามโมดูล สมมติเราจะสร้างโมดูล easynote
  • สร้างไฟล์ __init__.py
{
    'name': 'EasyNotes',
    'version': '0.1',
    'category': 'Tools',
    'description': """
This module allows users to create their own notes inside OpenERP
=================================================================

Notes can be found in the 'Home' menu.
""",
    'author': 'Testing',
    'website': 'http://openerp.com',
    'summary': 'Easy notes, easy everything',
    'sequence': 9,
    'depends': [],
    'data': [],
    'demo': [],
    'test': [],
    'css': [],
    'images': [],
    'installable': True,
    'application': True,
    'auto_install': False,
}
  • สร้างไฟล์