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)
This commit is contained in:
2026-09-02 11:23:39 +07:00
commit d657a0a8f0
19 changed files with 608 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
{
'name': "Catat Jual/Beli Saham (Saat Invest)",
'summary': "Aplikasi pencatatan pembelian & penjualan saham dengan perhitungan portofolio & P/L",
'description': """
Modul untuk mencatat transaksi jual-beli saham, menghitung posisi portofolio
(jumlah lembar, average cost, investasi) serta realised/unrealised profit-loss
secara otomatis. Dirancang untuk diakses melalui aplikasi mobile Flutter
via JSON-RPC bawaan Odoo.
""",
'version': '1.0.0',
'category': 'Account/Finance',
'author': "Kos Barokah",
'website': "https://kosbarokah.com",
'license': 'LGPL-3',
'sequence': 1,
'depends': ['base', 'web'],
'data': [
'security/ir.model.access.csv',
'data/saat.demo.saham.xml',
'views/saham_views.xml',
'views/transaksi_views.xml',
'views/portofolio_views.xml',
],
'demo': [],
'installable': True,
'application': True,
'auto_install': False,
}