feat(fusion_accounting_followup): 2 cron jobs (daily scan + weekly risk refresh)
Some checks failed
fusion_accounting CI / test (fusion_accounting_ai) (push) Has been cancelled
fusion_accounting CI / test (fusion_accounting_core) (push) Has been cancelled
fusion_accounting CI / test (fusion_accounting_migration) (push) Has been cancelled

- fusion.followup.cron AbstractModel with two handlers
- cron_fusion_followup_daily_scan: walks every overdue partner and
  delegates to engine.send_followup_email
- cron_fusion_followup_risk_refresh: weekly refresh of
  fusion_followup_risk_score / risk_band on res.partner
- V19 ir.cron records (no numbercall field)
- 2 smoke tests added (80 total)

Made-with: Cursor
This commit is contained in:
gsinghpal
2026-04-19 21:04:37 -04:00
parent 52becd176a
commit 042dcf8067
6 changed files with 130 additions and 1 deletions

View File

@@ -13,3 +13,4 @@ from . import test_engine_integration
from . import test_followup_controller
from . import test_followup_adapter
from . import test_followup_tools
from . import test_followup_cron

View File

@@ -0,0 +1,18 @@
"""Smoke tests for the fusion follow-up cron handlers."""
from odoo.tests import tagged
from odoo.tests.common import TransactionCase
@tagged('post_install', '-at_install')
class TestFollowupCron(TransactionCase):
def setUp(self):
super().setUp()
self.cron = self.env['fusion.followup.cron']
def test_cron_daily_scan_runs(self):
self.cron._cron_daily_scan()
def test_cron_risk_refresh_runs(self):
self.cron._cron_risk_refresh()