From d82a15b5630ce31a075743dff08fccdcf9b2deb3 Mon Sep 17 00:00:00 2001
From: Oihane Crucelaegui
Date: Tue, 23 Jul 2024 16:29:11 +0200
Subject: [PATCH] [MIG] quality_control_mrp_oca: Migration to 16.0
---
quality_control_mrp_oca/README.rst | 10 +--
quality_control_mrp_oca/__manifest__.py | 2 +-
.../models/qc_inspection.py | 3 +-
.../static/description/index.html | 7 +--
.../tests/test_quality_control_mrp.py | 63 ++++++++-----------
.../views/mrp_production_view.xml | 5 +-
.../views/qc_inspection_view.xml | 17 +++--
7 files changed, 46 insertions(+), 61 deletions(-)
diff --git a/quality_control_mrp_oca/README.rst b/quality_control_mrp_oca/README.rst
index 85c94fbf7..fc0ed1fa0 100644
--- a/quality_control_mrp_oca/README.rst
+++ b/quality_control_mrp_oca/README.rst
@@ -17,13 +17,13 @@ MRP extension for quality control (OCA)
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github
- :target: https://github.com/OCA/manufacture/tree/14.0/quality_control_mrp_oca
+ :target: https://github.com/OCA/manufacture/tree/16.0/quality_control_mrp_oca
:alt: OCA/manufacture
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/manufacture-14-0/manufacture-14-0-quality_control_mrp_oca
+ :target: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-quality_control_mrp_oca
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
- :target: https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=14.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=16.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -44,7 +44,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -82,6 +82,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-This module is part of the `OCA/manufacture `_ project on GitHub.
+This module is part of the `OCA/manufacture `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/quality_control_mrp_oca/__manifest__.py b/quality_control_mrp_oca/__manifest__.py
index d321669c9..dcc7397ce 100644
--- a/quality_control_mrp_oca/__manifest__.py
+++ b/quality_control_mrp_oca/__manifest__.py
@@ -4,7 +4,7 @@
{
"name": "MRP extension for quality control (OCA)",
- "version": "14.0.1.0.0",
+ "version": "16.0.1.0.0",
"category": "Quality control",
"license": "AGPL-3",
"author": "OdooMRP team, "
diff --git a/quality_control_mrp_oca/models/qc_inspection.py b/quality_control_mrp_oca/models/qc_inspection.py
index 2f9da5652..0d688db45 100644
--- a/quality_control_mrp_oca/models/qc_inspection.py
+++ b/quality_control_mrp_oca/models/qc_inspection.py
@@ -27,10 +27,11 @@ class QcInspection(models.Model):
@api.depends("object_id")
def _compute_product_id(self):
"""Overriden for getting the product from a manufacturing order."""
+ res = super()._compute_product_id()
for inspection in self:
- super()._compute_product_id()
if inspection.object_id and inspection.object_id._name == "mrp.production":
inspection.product_id = inspection.object_id.product_id
+ return res
def object_selection_values(self):
objects = super().object_selection_values()
diff --git a/quality_control_mrp_oca/static/description/index.html b/quality_control_mrp_oca/static/description/index.html
index b61876a93..abaa55c0e 100644
--- a/quality_control_mrp_oca/static/description/index.html
+++ b/quality_control_mrp_oca/static/description/index.html
@@ -1,4 +1,3 @@
-
@@ -369,7 +368,7 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b443f8480964e8dfd7d279284bb7bf75e74b7a10f63c943321af023ef0efd8d4
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module defines a trigger that creates quality control inspections when a
production order is finished.
It also adds the shortcuts related to these inspections on production orders.
@@ -390,7 +389,7 @@ production order is finished.
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -423,7 +422,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-
This module is part of the OCA/manufacture project on GitHub.
+
This module is part of the OCA/manufacture project on GitHub.