[17.0][IMP] `hr_holidays_public`: improve way to get public holidays #267
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.32) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 123 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.288
Real PR Conversation Timeline
1 comments
"Review active on #267"
general
weight: 0.35
vvrossem
Superseeds https://github.com/OCA/hr-holidays/pull/173
This first commit is exactly the same than the original PR.
---
[FIX] hr_holidays_public: fix AttributeError in _attendance_intervals_batch
Previous commit added
resources.mapped("employee_id")to auto-setemployee_idin context.However, [PR OCA#225](OCA#225) had previously set
resourcesto aPython list
[self.env["resource.resource"]]for theresources=Nonecase, whichhas no
.mapped()method, causing an AttributeError wheneverexclude_public_holidayswas set in context without explicit resources.Fix by adopting the same
resources_listpattern used in Odoo core_attendance_intervals_batch: whenresourcesis None, use a single-element listcontaining the empty recordset (key
False), otherwise extend the resource listwith the empty recordset. Pass
resources_listto the exclude helper so thatintervals[False]is always filtered, preserving the feature from PR OCA#225.