feat(fusion_accounting_reports): MV for per-account-per-month balances
Made-with: Cursor
This commit is contained in:
@@ -16,3 +16,4 @@ from . import test_fusion_report_tools
|
||||
from . import test_engine_property
|
||||
from . import test_pnl_integration
|
||||
from . import test_bs_tb_integration
|
||||
from . import test_account_balance_mv
|
||||
|
||||
20
fusion_accounting_reports/tests/test_account_balance_mv.py
Normal file
20
fusion_accounting_reports/tests/test_account_balance_mv.py
Normal file
@@ -0,0 +1,20 @@
|
||||
"""Tests for fusion_account_balance MV."""
|
||||
|
||||
from odoo.tests.common import TransactionCase, tagged
|
||||
|
||||
|
||||
@tagged('post_install', '-at_install')
|
||||
class TestAccountBalanceMV(TransactionCase):
|
||||
|
||||
def test_mv_exists_and_is_queryable(self):
|
||||
# Force initial refresh, then make sure the model can read it.
|
||||
self.env['fusion.account.balance.mv']._refresh(concurrently=False)
|
||||
rows = self.env['fusion.account.balance.mv'].search([], limit=5)
|
||||
self.assertIsNotNone(rows)
|
||||
|
||||
def test_mv_refresh_concurrent(self):
|
||||
# Try concurrent refresh; should either succeed or fall back gracefully.
|
||||
try:
|
||||
self.env['fusion.account.balance.mv']._refresh(concurrently=True)
|
||||
except Exception as e:
|
||||
self.fail(f"MV refresh raised: {e}")
|
||||
Reference in New Issue
Block a user