Skip to Content

CONTOH MODUL ADDONS CUSTOM

Modul addons custom — purchase_planned_delivery_date: field baru "Rencana Tanggal Kirim" (Date) pada Purchase Order, muncul di list view (kolom opsional) dan form view (setelah field Order Deadline).

  1. Buat folder purchase_planned_delivery_date di dalam C:\Users\tanjung\GIT\odoo19\custom-addons\
  2. Taruh 5 file sesuai struktur ini:
custom-addons/purchase_planned_delivery_date/
├─ __init__.py
├─ __manifest__.py
├─ models/
│  ├─ __init__.py
│  └─ purchase_order.py
└─ views/
   └─ purchase_order_views.xml
  1. Commit & push ke git:
cd C:\Users\tanjung\GIT\odoo19
git add custom-addons/purchase_planned_delivery_date
git commit -m "add module: purchase_planned_delivery_date"
git push
  1. Di server (atau di install lokal Windows kamu), update dan install:
git pull
docker compose restart odoo

Lalu di Odoo: aktifkan Developer Mode → menu AppsUpdate Apps List → cari "Purchase - Rencana Tanggal Kirim" → Install.

Setelah terinstall, buka Purchase Order — field "Rencana Tanggal Kirim" akan muncul di form (setelah Order Deadline), dan bisa ditampilkan di list lewat ikon opsi kolom (⚙️) di pojok kanan atas tabel.


File addons bisa di download disini ya

Rating
0 0

There are no comments for now.

to be the first to leave a comment.