Portofolio auto-sync: otomatis update saat transaksi berubah + tombol Rekalkulasi

- saat.transaksi.create/write/unlink memicu rekalkulasi portofolio otomatis
  (buka menu Portofolio selalu data segar, tanpa klik manual)
- Tambah tombol 'Rekalkulasi' di form portofolio sbg cadangan (action_recalc_click)
- Perbaiki help teks portofolio yg sebelumnya menyesatkan
This commit is contained in:
2026-09-02 13:30:42 +07:00
parent fca81a9997
commit 3417e077c7
4 changed files with 44 additions and 4 deletions

View File

@@ -42,7 +42,9 @@ Akses UI: http://localhost:18069 — login `admin` / `admin`
- ✅ Odoo 17 container jalan (port 18069), DB PostgreSQL 16 healthy
- ✅ JSON-RPC aktif (uid `admin` verified) — endpoint yang akan dipakai Flutter
- ✅ **Addon `saat_invest` terinstal** (model saham, transaksi, portofolio + seed 5 saham IDX)
- ✅ End-to-end teruji: buat beli/jual → recalculate → hitung avg cost & realized/unrealized P/L
- ✅ **Portofolio auto-sync**: otomatis diperbarui tiap transaksi ditambah/ubah/hapus
(tidak perlu tombol manual; buka menu Portofolio selalu datanya segar)
- ✅ End-to-end teruji: buat beli/jual → portofolio ter-update → hitung avg cost & realized/unrealized P/L
- ⏳ Aplikasi Flutter (login, catat jual/beli, portfolio, P/L)
## Install / upgrade addon saat_invest