← Back to Pull requests

[17.0][IMP] rental_base #99

Open
unknown opened this pull request with 199 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 03, 2026 20:45 UTC
Author

@BinhexTeam

T26607

Changes

  • Sale and rental order lists are told apart by the new stored field is_rental_order and the "Normal Order" / "Rental Order" search filters, active by default in each action, instead of a fixed domain on the order type.

  • Order lines show the rental flag as a Normal/Rental radio.

  • New Week(s) unit of measure. Rental quantity in weeks counts started weeks.

  • New "See Rental Menu" group. Only its members see the Rentals menu; root and admin get it on install.

  • The Sales & Purchase page stays visible on products that can be rented but not sold.

  • The rental field redefined on product.product is dropped, since the variant already reads it from its template.

  • Test covering the creation and deletion of a rental order.

  • The rental quantity follows the time unit of the line (day, week, month or hour). Started weeks and months count as whole ones, and hours use the hours per day of the company's working calendar.

  • Upgrading to 17.0.1.1.0 gives the "See Rental Menu" group to every active salesman, so the Rentals menu stays visible for the users who saw it before.

  • Sales > Orders > Quotations also opens filtered on normal orders.

  • The Rental Settings block of the order line form (Normal/Rental radio, rental type, rental to extend) is shown again; its xpath pointed inside the analytic distribution field.

  • The rental flag on products is labelled "Can be Rented".

  • development_status and maintainers set in the manifest.

  • Readme fragments moved to readme/, with the group setup in CONFIGURE and the filters and time units in USAGE.
  • Diff: 199 lines (+149 / -50) across 2 files Reviewer: edescalona Review duration: 29637m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 199 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%
    46%
    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.317
    Real PR Conversation Timeline
    1 comments
    "Review active on #99"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.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: 36.1% (MEDIUM) · Higher = larger blast radius
    36.1%
    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: 46.7% · Lower = rushed or shallow review
    46.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.3% · Safe to merge
    19.3%