This commit is contained in:
gsinghpal
2026-02-23 00:32:20 -05:00
parent d6bac8e623
commit e8e554de95
549 changed files with 1330 additions and 124935 deletions

View File

@@ -4,16 +4,3 @@
from . import models
from . import controllers
def _post_init_backfill_reports(env):
"""Backfill reports for historical pay periods on first install."""
existing = env['fusion.clock.report'].search_count([])
if existing:
return
has_data = env['hr.attendance'].search_count([
('check_out', '!=', False),
('x_fclk_pay_period_start', '!=', False),
], limit=1)
if has_data:
env['fusion.clock.report']._backfill_historical_reports()