← Back to Pull requests

[19.0][MIG] product_pack: migration to 19.0 #223

Merged
apik-mgu merged 35 files (4260 lines) on Nov 06, 2025 08:03 UTC
View on GitHub
apik-mgu apik-mgu commented on Oct 16, 2025 13:38 UTC
Author

No description provided by author.

Diff: 4260 lines (+4260 / -0) across 35 files Reviewer: lef-adhoc Review duration: 29904m
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.96) × (1 − Review Confidence (0.76)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.96 · 4260 lines diff across 35 files
0.96
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.52 · 5 substantive comment(s)
0.52
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
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
Sensitive Paths sensitive_paths
0.096
Mass File Touch mass_file_touch
0.080
Empty Description empty_description
0.060
Real PR Conversation Timeline
23 items
rvalyi rvalyi commented on Oct 16, 2025 15:54 UTC
Contributor

probably a bit too much of an auto-pilot trivial migration for a CONTRIBUTORS.md mention... @pedrobaeza I let you be the judge.

pedrobaeza pedrobaeza commented on Oct 16, 2025 15:55 UTC
Contributor

Yes, specially, when basic things stated in the migration guide are not covered (like setting version as 19.0.1.0.0, the commit message, etc).

apik-mgu apik-mgu commented on Oct 20, 2025 06:55 UTC
Author

Fixed version error

nicolascol nicolascol commented on Nov 05, 2025 10:58 UTC
Contributor

Hi @pedrobaeza ! LGTM functional review.
I agree with rvalyi's comment about the contributors.

lef-adhoc lef-adhoc commented on code on Nov 05, 2025 15:32 UTC
Code Review
product_pack/demo/product_product_demo.xml:1
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2019 Tecnativa - Ernesto Tejeda
+     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
+<odoo noupdate="1">
+    <record id="product_pack_cpu_detailed_components" model="product.product">
+        <field name="name">Pack CPU (Detailed - Displayed Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />

``<field name="categ_id" ref="product.product_category_services" />``

lef-adhoc lef-adhoc commented on code on Nov 05, 2025 15:32 UTC
Code Review
product_pack/demo/product_product_demo.xml:1
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2019 Tecnativa - Ernesto Tejeda
+     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
+<odoo noupdate="1">
+    <record id="product_pack_cpu_detailed_components" model="product.product">
+        <field name="name">Pack CPU (Detailed - Displayed Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_detailed_totalized" model="product.product">
+        <field name="name">Pack CPU (Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />

``<field name="categ_id" ref="product.product_category_services" />``

lef-adhoc lef-adhoc commented on code on Nov 05, 2025 15:32 UTC
Code Review
product_pack/demo/product_product_demo.xml:1
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2019 Tecnativa - Ernesto Tejeda
+     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
+<odoo noupdate="1">
+    <record id="product_pack_cpu_detailed_components" model="product.product">
+        <field name="name">Pack CPU (Detailed - Displayed Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_detailed_totalized" model="product.product">
+        <field name="name">Pack CPU (Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">totalized</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_detailed_ignored" model="product.product">
+        <field name="name">Pack CPU (Detailed - Ignored Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />

``<field name="categ_id" ref="product.product_category_services" />``

lef-adhoc lef-adhoc commented on code on Nov 05, 2025 15:33 UTC
Code Review
product_pack/demo/product_product_demo.xml:1
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2019 Tecnativa - Ernesto Tejeda
+     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
+<odoo noupdate="1">
+    <record id="product_pack_cpu_detailed_components" model="product.product">
+        <field name="name">Pack CPU (Detailed - Displayed Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_detailed_totalized" model="product.product">
+        <field name="name">Pack CPU (Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">totalized</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_detailed_ignored" model="product.product">
+        <field name="name">Pack CPU (Detailed - Ignored Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">ignored</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_non_detailed" model="product.product">
+        <field name="name">Pack CPU (Non Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />

``<field name="categ_id" ref="product.product_category_services" />``

lef-adhoc lef-adhoc commented on code on Nov 05, 2025 15:33 UTC
Code Review
product_pack/demo/product_product_demo.xml:1
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2019 Tecnativa - Ernesto Tejeda
+     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
+<odoo noupdate="1">
+    <record id="product_pack_cpu_detailed_components" model="product.product">
+        <field name="name">Pack CPU (Detailed - Displayed Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_detailed_totalized" model="product.product">
+        <field name="name">Pack CPU (Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">totalized</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_detailed_ignored" model="product.product">
+        <field name="name">Pack CPU (Detailed - Ignored Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">ignored</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_non_detailed" model="product.product">
+        <field name="name">Pack CPU (Non Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">non_detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_pc_detailed_components" model="product.product">
+        <field name="name">Pack PC (Detailed - Displayed Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />

``<field name="categ_id" ref="product.product_category_services" />``

lef-adhoc lef-adhoc commented on code on Nov 05, 2025 15:33 UTC
Code Review
product_pack/demo/product_product_demo.xml:1
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2019 Tecnativa - Ernesto Tejeda
+     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
+<odoo noupdate="1">
+    <record id="product_pack_cpu_detailed_components" model="product.product">
+        <field name="name">Pack CPU (Detailed - Displayed Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_detailed_totalized" model="product.product">
+        <field name="name">Pack CPU (Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">totalized</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_detailed_ignored" model="product.product">
+        <field name="name">Pack CPU (Detailed - Ignored Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">ignored</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_non_detailed" model="product.product">
+        <field name="name">Pack CPU (Non Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">non_detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_pc_detailed_components" model="product.product">
+        <field name="name">Pack PC (Detailed - Displayed Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_pc_detailed_totalized" model="product.product">
+        <field name="name">Pack PC (Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />

``<field name="categ_id" ref="product.product_category_services" />``

lef-adhoc lef-adhoc commented on code on Nov 05, 2025 15:33 UTC
Code Review
product_pack/demo/product_product_demo.xml:1
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2019 Tecnativa - Ernesto Tejeda
+     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
+<odoo noupdate="1">
+    <record id="product_pack_cpu_detailed_components" model="product.product">
+        <field name="name">Pack CPU (Detailed - Displayed Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_detailed_totalized" model="product.product">
+        <field name="name">Pack CPU (Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">totalized</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_detailed_ignored" model="product.product">
+        <field name="name">Pack CPU (Detailed - Ignored Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">ignored</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_non_detailed" model="product.product">
+        <field name="name">Pack CPU (Non Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">non_detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_pc_detailed_components" model="product.product">
+        <field name="name">Pack PC (Detailed - Displayed Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_pc_detailed_totalized" model="product.product">
+        <field name="name">Pack PC (Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">totalized</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_pc_detailed_ignored" model="product.product">
+        <field name="name">Pack PC (Detailed - Ignored Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />

``<field name="categ_id" ref="product.product_category_services" />``

lef-adhoc lef-adhoc requested changes on Nov 05, 2025 15:34 UTC
Changes Requested Reviewer

The product.product_category_4 reference no longer exists in Odoo v19.

Change needed: Replace product.product_category_4 with product.product_category_services in the demo data file.

apik-mgu apik-mgu commented on code on Nov 05, 2025 15:47 UTC
Code Review
product_pack/demo/product_product_demo.xml:1
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2019 Tecnativa - Ernesto Tejeda
+     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
+<odoo noupdate="1">
+    <record id="product_pack_cpu_detailed_components" model="product.product">
+        <field name="name">Pack CPU (Detailed - Displayed Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_detailed_totalized" model="product.product">
+        <field name="name">Pack CPU (Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">totalized</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_detailed_ignored" model="product.product">
+        <field name="name">Pack CPU (Detailed - Ignored Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">ignored</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_cpu_non_detailed" model="product.product">
+        <field name="name">Pack CPU (Non Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">non_detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_pc_detailed_components" model="product.product">
+        <field name="name">Pack PC (Detailed - Displayed Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">detailed</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_pc_detailed_totalized" model="product.product">
+        <field name="name">Pack PC (Detailed - Totalized Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />
+        <field name="pack_ok" eval="True" />
+        <field name="pack_type">detailed</field>
+        <field name="pack_component_price">totalized</field>
+        <field name="standard_price">20.5</field>
+        <field name="list_price">30.75</field>
+        <field name="type">service</field>
+    </record>
+    <record id="product_pack_pc_detailed_ignored" model="product.product">
+        <field name="name">Pack PC (Detailed - Ignored Components Price)</field>
+        <field name="categ_id" ref="product.product_category_4" />

@lef-adhoc Modification effectuée dans le fichier demo/product_product_demo.xml

lef-adhoc lef-adhoc approved these changes on Nov 05, 2025 17:09 UTC
Approved Reviewer

LGTM
@pedrobaeza what would be needed to merge?

pedrobaeza pedrobaeza commented on Nov 05, 2025 17:20 UTC
Contributor

/ocabot migration product_pack

Please change migration commit message to the one stated in https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-19.0

apik-mgu apik-mgu commented on Nov 06, 2025 07:50 UTC
Author

@pedrobaeza We are changed the commit message

pedrobaeza pedrobaeza commented on Nov 06, 2025 07:54 UTC
Contributor

It's still incorrect. Currently its [19.0][MIG] product_pack: Migration to 19.0, and it should be [MIG] product_pack: Migration to 19.0 (remove initial [19.0]). This is only put on the PR title to recognize which target branch, but not on the commit message.

apik-mgu apik-mgu commented on Nov 06, 2025 07:58 UTC
Author

@pedrobaeza Sorry, we are done

pedrobaeza pedrobaeza approved these changes on Nov 06, 2025 07:59 UTC
Approved Reviewer

/ocabot merge nobump

OCA-git-bot OCA-git-bot commented on Nov 06, 2025 07:59 UTC
Bot

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-223-by-pedrobaeza-bump-nobump, awaiting test results.

OCA-git-bot OCA-git-bot commented on Nov 06, 2025 08:00 UTC
Bot

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

OCA-git-bot OCA-git-bot commented on Nov 06, 2025 08:03 UTC
Bot

Congratulations, your PR was merged at 344a16a66be084bb627802f14e61cbaa16ee7d9b. Thanks a lot for contributing to OCA. ❤️

Reviewers
Assignees
apik-mgu apik-mgu
Labels
risk: low confidence: 75.6% 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: 75.6% · Lower = rushed or shallow review
75.6%
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: 23.4% · Safe to merge
23.4%