Files
Odoo-Modules/fusion_accounting_bank_rec/security/ir.model.access.csv
gsinghpal 12b6b46e2e feat(fusion_accounting_bank_rec): pre-aggregated MV for OWL widget perf
CREATE MATERIALIZED VIEW fusion_unreconciled_bank_line_mv pre-computes
the data the kanban widget needs (top suggestion, confidence band,
attachment count, partner reconcile hint) so that listing 50-100 lines
is one indexed query instead of N+1.

Refresh strategy:
- Triggered on fusion.reconcile.suggestion create/write (best-effort,
  never poisons the originating transaction)
- Cron (every 5 min) — added in Task 25

The MV is created in the model's init() (Odoo calls this on
install/upgrade). The SQL DDL is idempotent
(CREATE MATERIALIZED VIEW IF NOT EXISTS / CREATE INDEX IF NOT EXISTS)
and includes a UNIQUE(id) index so REFRESH MATERIALIZED VIEW
CONCURRENTLY is supported. _refresh() falls back to a blocking refresh
on the first call after creation.

Made-with: Cursor
2026-04-19 11:45:36 -04:00

1.4 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_fusion_reconcile_pattern_userpattern usermodel_fusion_reconcile_patternfusion_accounting_core.group_fusion_accounting_user1000
3access_fusion_reconcile_pattern_adminpattern adminmodel_fusion_reconcile_patternfusion_accounting_core.group_fusion_accounting_admin1111
4access_fusion_reconcile_precedent_userprecedent usermodel_fusion_reconcile_precedentfusion_accounting_core.group_fusion_accounting_user1000
5access_fusion_reconcile_precedent_adminprecedent adminmodel_fusion_reconcile_precedentfusion_accounting_core.group_fusion_accounting_admin1111
6access_fusion_reconcile_suggestion_usersuggestion usermodel_fusion_reconcile_suggestionfusion_accounting_core.group_fusion_accounting_user1000
7access_fusion_reconcile_suggestion_adminsuggestion adminmodel_fusion_reconcile_suggestionfusion_accounting_core.group_fusion_accounting_admin1111
8access_fusion_bank_rec_widget_userbank rec widget usermodel_fusion_bank_rec_widgetfusion_accounting_core.group_fusion_accounting_user1111
9access_fusion_unreconciled_bank_line_mv_userunreconciled bank line mv usermodel_fusion_unreconciled_bank_line_mvfusion_accounting_core.group_fusion_accounting_user1000
10access_fusion_unreconciled_bank_line_mv_adminunreconciled bank line mv adminmodel_fusion_unreconciled_bank_line_mvfusion_accounting_core.group_fusion_accounting_admin1000