← Back to Pull requests

[18.0][ADD] barcode_stock_product_multi_barcode #22

Open
unknown opened this pull request with 182 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 06, 2026 04:30 UTC
Author

Bridge between product_multi_barcode (OCA/stock-logistics-barcode) and barcode_stock: in the Barcode app, scanning any of a product's alternate barcodes resolves to the same move as its main barcode.

Why it is needed

product_multi_barcode lets a product hold several barcodes (its main one plus alternates), but barcode_stock only indexes the main barcode and the packagings when it preloads a picking. Scanning an alternate barcode is then rejected even though the product is on the move in that picking.

What it does

  • On preload of a picking, reads the product.barcode records of the products it contains and adds every alternate barcode to the scanner's barcodeToProductIds index, so a scan of any of them yields the same move candidates as the main barcode.

  • Clears the alternates on reset, so a new picking starts clean.

  • If the user cannot read product.barcode, the picking still loads and the scanner falls back to main barcodes and packagings.

  • Installs itself when both barcode_stock and product_multi_barcode are installed (auto_install), and changes neither module.
  • How to use

    1. Install barcode_stock and product_multi_barcode; this module installs itself.
    2. On a product, add the alternate barcodes in the Barcodes list next to the main barcode.
    3. Open a picking with that product in the Barcode app and scan an alternate barcode: it resolves to the same move as the main one.

    @BinhexTeam T26645

    Diff: 182 lines (+136 / -46) across 2 files Reviewer: edescalona Review duration: 36976m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.36) × (1 − Review Confidence (0.43)). 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.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.312
    Real PR Conversation Timeline
    1 comments
    "Review active on #22"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% 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: 43.0% · Lower = rushed or shallow review
    43.0%
    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: 20.3% · Safe to merge
    20.3%