Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

aa.gusti / project

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Issues 0
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Charts
  • Create a new issue
  • Issue Boards
Odoo devel

Odoo devel

Last edited by aa.gusti Nov 18, 2021
Page History

Panduan Development

Module

Module dalam odoo dibuat dengan menggunakan struktur folder seperti berikut ini:

  • module_name
    • controllers
    • data
    • i18n
    • models
    • report
    • security
    • static
    • tests
    • views
    • wizard

Struktur paling atas module_name akan menjadi prefix apabila ada module lain yang akan menggunakan sebagian atau seluruh sub module. Selain berisi nama-nama folder module_name juga berisi file yg terdiri:

  • __init__.py
  • __manifest__.py
  • README.md

__init__.py

File ini berisi fungsi-fungsi untuk otomasi saat instal module

__manifest__.py

{
    'name': 'Nama Module',
    'version': 'Versi',
    'summary': 'Summary',
    'sequence': 10, # nilai
    'description': """Uraian Detail""",
    'category': 'category aplikasi',
    'website': 'website developer',
    'images': [], # daftar image yang digunakan
    'depends': [], # module lain yang harus terinstall
    'data': [], # Berisi file konfigurasi 
    'demo': [], # Berisi file-file yang akan digunakan dalam demo 
    'qweb': [],
    'installable': True,
    'application': True,
    'auto_install': False,
    'post_init_hook': '_pad_post_init',
    'license': 'LGPL-3',
    'module': '...' # Berisi nama module
}

Langkah Membuat

  1. Create Models
  2. Create Form/Activity/Report

    • Create Form
    • Create Activity
    • Create Report
  3. Create Action

  4. Create Menu

  Clone repository
  • Big data
  • Dw pajak
  • Hadoop
  • Hive
  • Home
  • Odoo
  • Odoo devel
  • Odoo devel action
  • Odoo devel form
  • Odoo devel model
  • Odoo devel pdl
  • Odoo devel pdl objek pajak
  • Odoo devel pdl product_category
  • Odoo devel view area
  • Odoo qa
More Pages
×

New Wiki Page

Tip: You can specify the full path for the new file. We will automatically create any missing directories.