← Back to Pull requests

[18.0][FIX] edi_core_oca: show exchange records not linked to a record yet #396

Merged
mt-software-de merged 2 files (16 lines) on Nov 26, 2026 11:23 UTC
View on GitHub
mt-software-de mt-software-de commented on Nov 17, 2026 11:12 UTC
Author

Exchange records with a model but res_id = 0 (e.g. processing failed before the target record was created) are hidden from everyone except the superuser, including "Settings" users: 0 lands in missing, and missing.ids drops falsy ids, so the is_system() exception never applies.

Such records are now visible to users with read access on the model. Records whose linked record was deleted keep the current behaviour.

Diff: 16 lines (+16 / -0) across 2 files Reviewer: simahawk Review duration: 12970m
All Vouch review confidence checks passed
Residual risk 0.02 = Change Risk (0.21) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.21 · 16 lines diff across 2 files
0.21
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 5 substantive comment(s)
0.89
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
90%
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.170
Real PR Conversation Timeline
8 items
OCA-git-bot OCA-git-bot commented on Nov 17, 2026 11:12 UTC
Bot

Hi @simahawk, @etobella,
some modules you are maintaining are being modified, check this out!

simahawk simahawk approved these changes on Nov 26, 2026 07:47 UTC
Approved Reviewer

Seems legit.
@etobella could you have a look?

etobella etobella approved these changes on Nov 26, 2026 11:14 UTC
Approved Reviewer

/ocabot merge patch

Can you port the change to 19.0 🙏 ?

OCA-git-bot OCA-git-bot commented on Nov 26, 2026 11:14 UTC
Bot

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-396-by-etobella-bump-patch, awaiting test results.

OCA-git-bot OCA-git-bot commented on Nov 26, 2026 11:18 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). 🤖

OCA-git-bot OCA-git-bot commented on Nov 26, 2026 11:23 UTC
Bot

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

mt-software-de mt-software-de commented on Nov 26, 2026 11:23 UTC
Author

/ocabot merge patch

> Can you port the change to 19.0 🙏 ?

https://github.com/OCA/edi-framework/pull/402

Reviewers
Assignees
mt-software-de mt-software-de
Labels
risk: low confidence: 90.8% 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: 21.4% (LOW) · Higher = larger blast radius
21.4%
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: 90.8% · Lower = rushed or shallow review
90.8%
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: 2% · Safe to merge
2%