← Back to Pull requests

[18.0][FIX] fieldservice_stage_server_action: test action model #1666

Closed
unknown closed this pull request without merging on Nov 11, 2026 17:21 UTC
View on GitHub
unknown unknown commented on Nov 11, 2026 14:43 UTC
Author

@BinhexTeam

Problem / Context

TestFSMOrderRunAction.test_fsm_order_run_action fails on 18.0 since
odoo/odoo#301090 ("[FIX] base: run server actions on records of their own model",
merged in 18.0 as odoo/odoo@df75d96):

Server action 'Create new tag' ignored: the active records are not fsm.tag records; got fsm.order.

Since that change, server actions that are not Python code or multi actions are
ignored when the active records belong to another model.

Impact

The CI of the 18.0 branch has been red since that Odoo change, so every 18.0 PR
tested since then fails on this test, regardless of its content. Confirmed on #1665;
#1653, #1663 and #1664 are also red and are likely affected too.

Solution

The test defined its "create" server action on fsm.tag (both model_id and
crud_model_id). An object_create action must be defined on the model it runs on,
fsm.order, with fsm.tag as crud_model_id. Only the test changes. The module
behavior is unchanged.

How to test

Run the fieldservice_stage_server_action tests with an up-to-date Odoo 18.0.

Evidence

  • Without the change, test_fsm_order_run_action fails with the warning above.

  • With the change, the module tests pass and no warning is logged.
  • Compatibility / Risks

    No change in the module code. Stage actions defined on another model that are not
    Python code or multi actions are now ignored by Odoo core itself. They must be
    defined on fsm.order.

    Diff: 182 lines (+136 / -46) across 2 files Reviewer: rrebollo Review duration: 158m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 182 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.312
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1666"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 35.6% (MEDIUM) · Higher = larger blast radius
    35.6%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 14.1% · Safe to merge
    14.1%