← Back to Pull requests

[15.0][MIG] fieldservice_vehicle #882

Merged
Vandan-OSI merged 34 files (1822 lines) on Nov 07, 2022 17:02 UTC
View on GitHub
Vandan-OSI Vandan-OSI commented on Jan 07, 2022 18:00 UTC
Author

No description provided by author.

Diff: 1822 lines (+1821 / -1) across 34 files Reviewer: murtuzasaleh Review duration: 437702m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.78) × (1 − Review Confidence (0.81)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.78 · 1822 lines diff across 34 files
0.78
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.71 · 5 substantive comment(s)
0.71
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
81%
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
Empty Description empty_description
0.060
Real PR Conversation Timeline
19 items
Murtaza-OSI Murtaza-OSI commented on Feb 10, 2022 09:14 UTC
Contributor

/ocabot migration base_territory

OCA-git-bot OCA-git-bot commented on Feb 10, 2022 09:14 UTC
Bot

Sorry @Murtaza-OSI you are not allowed to mark the addon tobe migrated.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

Murtaza-OSI Murtaza-OSI commented on code on Feb 10, 2022 10:36 UTC
Code Review
fieldservice_vehicle/README.rst:1
@@ -0,0 +1,128 @@
+======================
+Field Service Vehicles
+======================
+
+.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+   !! This file is generated by oca-gen-addon-readme !!
+   !! changes will be overwritten.                   !!
+   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
+    :target: https://odoo-community.org/page/development-status
+    :alt: Beta
+.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
+    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
+    :alt: License: AGPL-3
+.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ffield--service-lightgray.png?logo=github
+    :target: https://github.com/OCA/field-service/tree/14.0/fieldservice_vehicle

Used oca-gen-addon-readme

Murtaza-OSI Murtaza-OSI commented on code on Feb 10, 2022 10:38 UTC
Code Review
fieldservice_vehicle/models/fsm_order.py:1
@@ -0,0 +1,20 @@
+# Copyright (C) 2019 Open Source Integrators
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+from odoo import api, fields, models
+
+
+class FSMOrder(models.Model):
+    _inherit = "fsm.order"
+
+    @api.model
+    def _get_default_vehicle(self):
+        return self.person_id.vehicle_id.id or False
+
+    vehicle_id = fields.Many2one(
+        "fsm.vehicle", string="Vehicle", default=_get_default_vehicle
+    )
+
+    @api.onchange("person_id")
+    def _onchange_person_id(self):
+        if self.person_id.vehicle_id:
+            self.vehicle_id = self.person_id.vehicle_id.id

Convert to single line code

brian10048 brian10048 commented on May 24, 2022 14:58 UTC
Contributor

/ocabot migration fieldservice_vehicle

murtuzasaleh murtuzasaleh approved these changes on Nov 01, 2022 13:18 UTC
Approved Reviewer

Approved these changes.

Murtaza-OSI Murtaza-OSI approved these changes on Nov 01, 2022 13:24 UTC
Approved Reviewer

Approved these changes.

nikul-serpentcs nikul-serpentcs approved these changes on Nov 01, 2022 13:47 UTC
Approved Reviewer

Code LGTM :+1:

@max3903 @brian10048 can you please take a look?

Freni-OSI Freni-OSI approved these changes on Nov 03, 2022 11:33 UTC
Approved Reviewer

Approved these changes.

max3903 max3903 commented on Nov 03, 2022 14:06 UTC
Contributor

/ocabot merge nobump

OCA-git-bot OCA-git-bot commented on Nov 03, 2022 14:06 UTC
Bot

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-882-by-max3903-bump-nobump, awaiting test results.

OCA-git-bot OCA-git-bot commented on Nov 03, 2022 14:09 UTC
Bot

@max3903 your merge command was aborted due to failed check(s), which you can inspect on this commit of 15.0-ocabot-merge-pr-882-by-max3903-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

OCA-git-bot OCA-git-bot commented on Nov 03, 2022 14:13 UTC
Bot

@max3903 your merge command was aborted due to failed check(s), which you can inspect on this commit of 15.0-ocabot-merge-pr-882-by-max3903-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

max3903 max3903 commented on Nov 07, 2022 14:38 UTC
Contributor

/ocabot merge nobump

max3903 max3903 commented on Nov 07, 2022 16:43 UTC
Contributor

/ocabot merge nobump

OCA-git-bot OCA-git-bot commented on Nov 07, 2022 16:44 UTC
Bot

This PR looks fantastic, let's merge it!
Prepared branch 15.0-ocabot-merge-pr-882-by-max3903-bump-nobump, awaiting test results.

OCA-git-bot OCA-git-bot commented on Nov 07, 2022 16:53 UTC
Bot

It looks like something changed on 15.0 in the meantime.
Let me try again (no action is required from you).
Prepared branch 15.0-ocabot-merge-pr-882-by-max3903-bump-nobump, awaiting test results.

OCA-git-bot OCA-git-bot commented on Nov 07, 2022 17:02 UTC
Bot

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

Reviewers
Assignees
Vandan-OSI Vandan-OSI
Labels
risk: low confidence: 81.1% 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: 77.5% (HIGH) · Higher = larger blast radius
77.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: 81.1% · Lower = rushed or shallow review
81.1%
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: 14.6% · Safe to merge
14.6%