← Back to Pull requests

[20.0][MIG] account_asset_management: Migration to 20.0 #2408

Open
unknown opened this pull request with 206 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 14, 2026 12:41 UTC
Author

Migration of account_asset_management to 20.0 (#2399).

The module's 19.0 history is carried over (git format-patch / git am), followed by:

  • [IMP] pre-commit auto fixes: ruff format with the repository's pinned ruff (0.16.8).

  • [MIG] Migration to 20.0:

  • - security/ir.model.access.csv and the three multi-company ir.rule records become security/ir.access.csv (Odoo 20 merged them). The 18 access rows carry over 1:1; the rules become global rows with the same domain.
    - Font Awesome icons in the views are replaced by names from web/icons.py, as Odoo 20 requires.
    - Fixes for the ruff 0.16 default rules: merged nested ifs, next() instead of [0], .items(), and fields.Date.today() in the tests. noqa is used for Odoo's list class attributes and for the deliberate broad except that keeps one asset from stopping the depreciation batch.
    - Version 20.0.1.0.0.
  • [DON'T MERGE] test-requirements.txt: report_xlsx (#1203 on OCA/reporting-engine) and report_xlsx_helper (OCA/reporting-engine#1214) are not merged on 20.0 yet. To be dropped once they are.
  • Tested locally on Odoo 20.0 Community with those two PRs: 33/33 tests (account_asset_management, report_xlsx, report_xlsx_helper), no warnings. The module has also run on an Odoo 20 production-like database (Saudi chart, SAR, Arabic), installed with -i after a full upgrade.

    Not run locally: the full pre-commit (one hook needs libcst, which does not build here), so CI's pre-commit is the check for prettier, pylint-odoo and the README generator.

    Assisted-by: Claude

    🤖 Generated with Claude Code

    Diff: 206 lines (+154 / -52) across 2 files Reviewer: Saran440 Review duration: 68589m
    All Vouch review confidence checks passed
    Residual risk 0.37 = Change Risk (0.67) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.67 · 206 lines diff across 2 files
    0.67
    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%
    44%
    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.319
    Sensitive Paths sensitive_paths
    0.067
    Real PR Conversation Timeline
    1 comments
    "Review active on #2408"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 44.7% reviewed sensitive_module
    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: 66.5% (HIGH) · Higher = larger blast radius
    66.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: 44.7% · Lower = rushed or shallow review
    44.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: 36.8% · Moderate risk
    36.8%