Giter Club home page Giter Club logo

belajar-odoo-avatar's Introduction

# Panduan Programming Odoo #

waktu baca: 5 menit

# Cara Kerja Odoo

  1. Setiap perubahan di python, harus direstart
  2. Perubahan di XML, biasanya cukup hard reset views
  3. Penambahan record di XML, biasanya butuh upgrade module
    • Jika hanya mengupdate merubah design, cukup Hard Reset
    • Jika membuat view baru, perlu Upgrade Module
  4. Backup / restore database ada di /web/database/manager

# Convention

  1. Naming convention untuk variable menggunakan snake_case: contohnya_seperti_ini
  2. Naming convention untuk class, gunakan CamelCase
  3. Naming convention untuk file, gunakan under_score.ext
  4. Nama model biasanya menggunakan Double Quote
    contoh: _name = "nama_module.nama_table"
  5. Inherit table biasanya menggunakan Single Quote
    contoh: _inherit = 'nama_module.nama_table'
  6. Rekomendasi gunakan spaces 4

# Tips

  1. Gunakan git untuk bekerja, titik.
  2. Gunakan ChatGPT dulu sebelum googling
  3. Rekomendasi gunakan vscode dengan odoo extension, dan masukkan folder odoo ke workspace
    • Odoo.odoo
    • trinhanhngoc.vscode-odoo
    • jigar-patel.OdooSnippets

# Cheat Sheet

  1. Untuk relasi many2one biasanya menggunakan nama_field + _id, contoh: customer_id, vendor_id, product_id, dsb
  2. Untuk relasi one2many dan many2many, biasanya menggunakan nama_field + _ids, contoh: customer_ids, vendor_ids, product_ids, dsb

# Tentang Training Odoo

  1. Memperhatikan lebih baik daripada nyoba-nyoba
  2. Kelas akan berjalan dengan sangat cepat, karena kita enggak punya waktu banyak. Jika mencatat membuatmu ketinggalan, tidak bisa memperhatikan dengan baik, lebih baik tidak usah mencatat. Perhatikan saja. Nanti cukup clone repo, coba-coba sambil nyontek contoh yang sudah dibuat. Kalau bingung silahkan konsultasi via WA (bikin group WA, biar 1x jawab, semua memperhatikan)

# Wisdom

  1. programming itu menyenangkan, jika menggunakan odoo. :))

belajar-odoo-avatar's People

Contributors

jackysupit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.