Commit Graph

5 Commits

Author SHA1 Message Date
0181bdbdfc update documentation 2026-09-17 20:06:25 +07:00
b53406791f Harga live otomatis via cron: Yahoo Finance tiap 6 menit saat jam bursa IDX
- saat.saham: field harga_terakhir, harga_update_at + method _cron_fetch_live_prices()
- _in_trading_window() pakai timezone Asia/Jakarta eksplisit (container UTC) 08:45-16:00 WIB
- Data ir.cron (6 menit): ambil harga saham aktif, update KALAU berubah,
  sinkronkan ke saat.portofolio.harga_sekarang utk hitung equity
- Terverifikasi: 8 saham ter-fetch & ter-update (07:01 UTC / 14:01 WIB)
2026-09-02 14:02:01 +07:00
3417e077c7 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
2026-09-02 13:30:42 +07:00
fca81a9997 Ganti port host Odoo 8069 -> 18069 (host:container = 18069:8069)
- docker-compose.yml: expose host port 18069
- README.md: update URL akses & status
- Data tidak terpengaruh (volume utuh); 8069 tidak lagi dipublish.
- Odoo internal (container) tetap 8069.
2026-09-02 11:41:42 +07:00
d657a0a8f0 Aplikasi catat jual-beli saham: Odoo 17 + Postgres 16 + addon saat_invest
- docker-compose.yml: odoo:17.0 (port 8069) + postgres:16 (internal, no publish)
- Addon saat_invest: model saat.saham / saat.transaksi / saat.portofolio
  - P/L computed (realized FIFO, unrealized dari harga_sekarang)
  - action_recalculate() endpoint untuk Flutter
  - seed 5 saham IDX (BBRI, TLKM, BBCA, ASII, PTBA)
- JSON-RPC end-to-end terverifikasi: create beli/jual -> recalculate -> portfolio
  (avg_cost 4525, realized 65000, unrealized 220000, nilai 3840000)
- PLAN.md: rancangan disetujui Bozz
- Login Odoo admin/admin (ganti password master di .env, jangan commit)
2026-09-02 11:23:39 +07:00