[18.0][FIX] fieldservice_stage_server_action: test action model #1666
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
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
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
rrebollo
@BinhexTeam
Problem / Context
TestFSMOrderRunAction.test_fsm_order_run_actionfails on 18.0 sinceodoo/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(bothmodel_idandcrud_model_id). Anobject_createaction must be defined on the model it runs on,fsm.order, withfsm.tagascrud_model_id. Only the test changes. The modulebehavior is unchanged.
How to test
Run the
fieldservice_stage_server_actiontests with an up-to-date Odoo 18.0.Evidence
test_fsm_order_run_actionfails with the warning above.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.