← Back to Pull requests

[IMP] fieldservice: add setting to skip day check on FS Order #1730

Merged
HekkiMelody merged 8 files (128 lines) on Dec 01, 2026 10:13 UTC
View on GitHub
HekkiMelody HekkiMelody commented on Nov 23, 2026 14:26 UTC
Author
Diff: 128 lines (+97 / -31) across 8 files Reviewer: PicchiSeba Review duration: 11267m
All Vouch review confidence checks passed
Residual risk 0.10 = Change Risk (0.42) × (1 − Review Confidence (0.76)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 128 lines diff across 8 files
0.42
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.53 · 5 substantive comment(s)
0.53
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
76%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.291
Real PR Conversation Timeline
16 items
OCA-git-bot OCA-git-bot commented on Nov 23, 2026 14:26 UTC
Bot

Hi @max3903, @brian10048,
some modules you are maintaining are being modified, check this out!

PicchiSeba PicchiSeba approved these changes on Nov 23, 2026 14:46 UTC
Approved Reviewer

Code Review: LGTM

SirPyTech SirPyTech requested changes on Nov 23, 2026 15:41 UTC
Changes Requested Reviewer
SirPyTech SirPyTech commented on code on Nov 24, 2026 12:12 UTC
Code Review
fieldservice/models/fsm_order.py:1
@@ -467,10 +468,16 @@ def check_day(self):
                         Domain("date_from", ">=", rec.scheduled_date_start),
                         Domain("date_to", "<=", rec.scheduled_date_end),
                     ]
-                )
+                ),
             )
             if holidays:
-                msg = (
-                    f"{rec.scheduled_date_start.date()} is a holiday {holidays[0].name}"
+                raise ValidationError(
+                    rec.env._(
+                        "%(date)s is a holiday: %(holidays)s",
+                        date=format_date(
+                            self.env,
+                            fields.Date.context_today(self, rec.scheduled_date_start),
+                        ),
+                        holidays=", ".join(map(str, holidays.mapped("name"))),
SirPyTech SirPyTech approved these changes on Nov 24, 2026 12:14 UTC
Approved Reviewer

Only one note about the holiday's name, otherwise it's fine, thanks!

max3903 max3903 commented on Nov 25, 2026 14:40 UTC
Reviewer

Automated review has been completed successfully. This pull request is ready for human testing. A maintainer should test/review before approving.

OCA-git-bot OCA-git-bot commented on Nov 28, 2026 15:00 UTC
Bot

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

hparfr hparfr commented on Dec 01, 2026 07:53 UTC
Reviewer

/ocabot merge minor

OCA-git-bot OCA-git-bot commented on Dec 01, 2026 07:53 UTC
Bot

What a great day to merge this nice PR. Let's do it!
Prepared branch 19.0-ocabot-merge-pr-1730-by-hparfr-bump-minor, awaiting test results.

OCA-git-bot OCA-git-bot commented on Dec 01, 2026 08:03 UTC
Bot

@hparfr The merge process could not start, because command git merge --no-ff -m 'Merge PR #1730 into 19.0

Signed-off-by hparfr' tmp-pr-1730 failed with output:

Auto-merging fieldservice/README.rst
CONFLICT (content): Merge conflict in fieldservice/README.rst
Auto-merging fieldservice/models/fsm_order.py
Auto-merging fieldservice/static/description/index.html
CONFLICT (content): Merge conflict in fieldservice/static/description/index.html
Automatic merge failed; fix conflicts and then commit the result.

OCA-git-bot OCA-git-bot commented on Dec 01, 2026 08:03 UTC
Bot

@hparfr The merge process could not be finalized, because command git merge --no-ff -m 'Merge PR #1730 into 19.0

Signed-off-by hparfr' tmp-pr-1730 failed with output:

Auto-merging fieldservice/README.rst
CONFLICT (content): Merge conflict in fieldservice/README.rst
Auto-merging fieldservice/models/fsm_order.py
Auto-merging fieldservice/static/description/index.html
CONFLICT (content): Merge conflict in fieldservice/static/description/index.html
Automatic merge failed; fix conflicts and then commit the result.

HekkiMelody HekkiMelody commented on Dec 01, 2026 09:44 UTC
Author

Rebased to fix conflicts

hparfr hparfr commented on Dec 01, 2026 10:03 UTC
Reviewer

/ocabot merge minor

OCA-git-bot OCA-git-bot commented on Dec 01, 2026 10:03 UTC
Bot

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-1730-by-hparfr-bump-minor, awaiting test results.

OCA-git-bot OCA-git-bot commented on Dec 01, 2026 10:13 UTC
Bot

Congratulations, your PR was merged at 82ac773fa017f2beb6256e1c38d417a85c037561. Thanks a lot for contributing to OCA. ❤️

Reviewers
Assignees
HekkiMelody HekkiMelody
Labels
risk: low confidence: 76.3% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 42.3% (MEDIUM) · Higher = larger blast radius
42.3%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 76.3% · Lower = rushed or shallow review
76.3%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 10% · Safe to merge
10%