← Back to Pull requests

[19.0][MIG] pos_sale_picking_keep #1576

Open
alan196 opened this pull request with 1004 lines diff across 19 files
View on GitHub
alan196 alan196 commented on Jun 27, 2026 01:37 UTC
Author

Migration of pos_sale_picking_keep from 18.0 to 19.0.

Migration changes


  • Bump manifest version to 19.0.1.0.0.

  • Update the PoS test tour imports to the new 19.0 paths (tests/pos/tours/utils/* and tests/generic_helpers/dialog_util).

  • Grant sales_team.group_sale_salesman in the test setup: in 19.0 point_of_sale.group_pos_manager no longer implies sales rights and the web onchange now checks create access, so creating the sale order in the test raised AccessError.

  • Use f-strings for the tour URLs (ruff UP031).

  • Add readme/CONTRIBUTORS.md and regenerate the README.
  • Functional behavior is unchanged; both PoS tours pass locally.

    cc @pedrobaeza

    Diff: 1004 lines (+1004 / -0) across 19 files Reviewer: tobiaszehntner Review duration: 212937m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.79) × (1 − Review Confidence (0.76)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.79 · 1004 lines diff across 19 files
    0.79
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.70 · 2 substantive comment(s)
    0.70
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    75%
    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.400
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    4 items
    alan196 alan196 commented on Jun 27, 2026 13:26 UTC
    Author

    ℹ️ Tests pass (tour SUCCEEDED, 0 failed, 0 error(s)). CI is red only because of the Chrome teardown WARNING (Killing chrome descendants-or-self ... chrome (zombie)) that checklog-odoo flags, which affects every PR with a tour in this repo. The infra fix is in #1577; once merged, this PR will go green when re-run on the updated base.

    alan196 alan196 commented on Jul 02, 2026 17:52 UTC
    Author

    Added a second commit with an improvement found while using the module in production: when settling a sale order that was already delivered, the PoS loaded the lines with zero quantity (or even dropped the lines completely for products whose UoM is not groupable in the PoS, due to the line splitting logic of pos_sale). Since with this module the PoS is only used to charge the order and the sale order pickings are kept, the ordered quantity is now loaded, deducting only what was already invoiced. Covered with a new tour-based test.

    tobiaszehntner tobiaszehntner approved these changes on Oct 08, 2026 13:18 UTC
    Approved Reviewer

    Code LGTM

    Assignees
    alan196 alan196
    Labels
    risk: low confidence: 75.7% 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: 78.5% (HIGH) · Higher = larger blast radius
    78.5%
    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: 75.7% · Lower = rushed or shallow review
    75.7%
    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: 19.1% · Safe to merge
    19.1%
    Repository