← Back to Pull requests

[20.0][MIG] printer_zpl2: Migration to 20.0 #495

Open
gbaumgartner-callino opened this pull request with 29868 lines diff across 54 files
View on GitHub
gbaumgartner-callino gbaumgartner-callino commented on Oct 28, 2026 15:33 UTC
Author
Diff: 29868 lines (+29868 / -0) across 54 files Reviewer: wpichler Review duration: 54040m
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.96) × (1 − Review Confidence (0.67)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.96 · 29868 lines diff across 54 files
0.96
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.38 · 1 substantive comment(s)
0.38
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
66%
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
Sensitive Paths sensitive_paths
0.096
Mass File Touch mass_file_touch
0.080
Real PR Conversation Timeline
3 items
oca-cla-bot[bot] oca-cla-bot[bot] commented on Oct 28, 2026 15:33 UTC
Bot

The following commit authors need to sign the Contributor License Agreement:

duongtq@trobz.com
rod.schouteden@dynapps.be
duyanhitspkt@gmail.com
Jos.DeGraeve@apertoso.be

![CLA not signed](https://clabot.odoo-community.org/)<!-- CLA BOT SIGNING COMMENT DO NOT EDIT -->

wpichler wpichler commented on Oct 28, 2026 16:03 UTC
Reviewer

Tested locally on Odoo 20.0 (community dd797414, PostgreSQL 16, Python 3.12) together with the dependency PRs #493 and #494 merged on top of 20.0:

  • printer_zpl2 installs cleanly, --test-tags=/printer_zpl2: 49 tests, 0 failed, 0 errors, no warnings from the module.

  • Code review: the 20.0 adaptations look right to me – ir.access.csv conversion, BinaryBytes / BinaryValue.content handling for graphic_image and the labelary preview, _test_user_groups on the common test class, backend: cups on the test printers.
  • One observation that is not caused by this PR, but shows up as soon as all three are installed together: running the base_report_to_printer tests with base_report_to_printer_cups installed gives 4 errors and 4 failures, e.g. TestPrintingJob.test_action_cancel_ → null value in column "job_id_cups" of relation "printing_job" violates not-null constraint, and TestIrActionsReportCups.test_behaviour_ → 0 not greater than or equal to 1. Same result without printer_zpl2, so it belongs to #493/#494 – just mentioning it here since this PR depends on both.

    Not tested: printing on real hardware (Zebra) – only the test suite.

    The red "Detect unreleased dependencies" check is expected until #493 and #494 are merged.

    🤖 Generated with Claude Code

    Reviewers
    Assignees
    gbaumgartner-callino gbaumgartner-callino
    Labels
    risk: low confidence: 66.8% 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: 96% (HIGH) · Higher = larger blast radius
    96%
    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: 66.8% · Lower = rushed or shallow review
    66.8%
    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: 31.9% · Safe to merge
    31.9%