[18.0][FIX] payroll: contribution register wizard dates evaluated when the server starts #322
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.51) × (1 − Review Confidence (0.68)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.51 · 22 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.54 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.188
Sensitive Paths
sensitive_paths
0.051
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
3 items
Hi @appstogrow, @nimarosa,
some modules you are maintaining are being modified, check this out!
Approved
Approved these changes.
dreispt
parabol123654
The defaults of
date_fromanddate_toonpayslip.lines.contribution.register(PaySlip Lines by Contribution Register wizard) are computed withdatetime.now()when the module is imported. If the server was started in October and the report is printed in November, the wizard still proposes October 1st to October 31st.The fix computes the defaults when the wizard is opened: the first and last day of the current month, using
fields.Date.context_today.The new test opens the wizard inside
freeze_time("2030-02-15"). Without the fix it fails withFakeDate(2026, 10, 1) != FakeDate(2030, 2, 1). 19.0 has the same code; I will forward-port it after merge.Assisted-by: Claude Opus 5.5