← Back to Pull requests

[17.0][ADD] stock_picking_portal_owner: Stock Picking Portal Owner. #2434

Closed
unknown closed this pull request without merging on Oct 12, 2026 09:27 UTC
View on GitHub
unknown unknown commented on Aug 20, 2026 08:32 UTC
Author

@BinhexTeam

[ADD] stock_picking_portal_owner: Portal visibility for consigned pickings

📝 Context & Need


In logistics operations involving consignment inventory, the goods stored in a warehouse belong to various third-party owners (consignees). While Odoo natively tracks the ownership of these goods using the standard owner_id field, third-party owners lack an autonomous mechanism to consult the logistics operations (pickings/deliveries) processed on their merchandise from the Customer Portal. Currently, this creates an operational dependency, forcing owners to manually request information from the logistics operator's warehouse staff, which increases administrative overhead.

🚀 What it incorporates


This PR introduces the stock_picking_portal_owner module, which extends the existing portal infrastructure to add a specific, secure area for consignment owners. Specifically, it includes:
📦 "My Consigned Pickings" Portal Section: A new dedicated menu in the portal for owners to access operations strictly related to their merchandise.
🔒 Strict Data Isolation by Owner: Automatically filters the pickings so the authenticated user can exclusively view operations where the owner_id matches their associated partner.
♻️ Infrastructure Reuse: Extends the stock_picking_portal module via inheritance, fully reusing its established controllers, list views, detail views, search, sorting, and pagination without duplicating code or altering the base module's behavior.
🔀 Independent Coexistence: Operates completely independently from the standard "My Pickings" (customer-oriented) portal, ensuring that standard commercial operations and consignment operations remain functionally separate.

✨ Benefits


📈 Autonomy for Consignees: Empowers third-party owners with real-time, self-service access to monitor the logistics movements of their own stock.
⏱️ Reduced Administrative Burden: Eliminates the need for the operator's staff to manually generate and send picking reports to merchandise owners.
🛡️ Guaranteed Security: Ensures strict privacy by preventing users from accessing operations belonging to other owners or the operator's private stock, even via URL manipulation.
🧩 OCA-Compliant & Reusable: Built entirely on standard Odoo capabilities using inheritance, free of custom client logic, making it highly reusable for any Odoo implementation managing third-party logistics (3PL) or consignment inventory.

Diff: 313 lines (+234 / -79) across 3 files Reviewer: edescalona Review duration: 76375m
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 313 lines diff across 3 files
0.40
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.344
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2434"
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: 40.3% (MEDIUM) · Higher = larger blast radius
40.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: 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: 15.9% · Safe to merge
15.9%