cabf51add7b2642c56463b5641c836e3e01478ce
The engine orchestrator. compute_pnl, compute_balance_sheet, compute_trial_balance, compute_gl, drill_down. All controllers, wizards, AI tools must route through these methods; no direct SQL aggregation from anywhere else. Internal pipeline: validate -> fetch hierarchy -> SQL aggregate -> resolve line_specs -> optional comparison + anomaly. Uses raw SQL for the per-account aggregate (the perf-critical step), ORM for everything else. Per-company report lookup with global fallback (company_id desc nulls last). Balance sheet uses 1970 epoch as date_from for cumulative-since-inception semantics. 7 new tests, 42 total passing. Made-with: Cursor
Description
Odoo 19 custom modules
Languages
Python
55.9%
HTML
26.1%
JavaScript
14.9%
SCSS
1.8%
CSS
0.8%
Other
0.4%