From abede9927ad9409f761f8a5f9e00b7605987836b Mon Sep 17 00:00:00 2001
From: Antoni Marroig Campomar
Date: Mon, 11 Nov 2024 15:56:51 +0100
Subject: [PATCH] [MIG] quality_control_stock_oca: Migration to 18.0
---
quality_control_stock_oca/README.rst | 10 +++++-----
quality_control_stock_oca/__manifest__.py | 2 +-
.../static/description/index.html | 17 ++++++++++-------
.../tests/test_quality_control_stock.py | 3 ++-
.../views/stock_picking_view.xml | 8 ++++----
.../views/stock_production_lot_view.xml | 8 ++++----
6 files changed, 26 insertions(+), 22 deletions(-)
diff --git a/quality_control_stock_oca/README.rst b/quality_control_stock_oca/README.rst
index b2558530e8..de96f21ac4 100644
--- a/quality_control_stock_oca/README.rst
+++ b/quality_control_stock_oca/README.rst
@@ -17,13 +17,13 @@ Quality control - Stock (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/17.0/quality_control_stock_oca
+ :target: https://github.com/OCA/manufacture/tree/18.0/quality_control_stock_oca
:alt: OCA/manufacture
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/manufacture-17-0/manufacture-17-0-quality_control_stock_oca
+ :target: https://translation.odoo-community.org/projects/manufacture-18-0/manufacture-18-0-quality_control_stock_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=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -49,7 +49,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.
@@ -93,6 +93,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_stock_oca/__manifest__.py b/quality_control_stock_oca/__manifest__.py
index 741ff1970a..01f1fda1d1 100644
--- a/quality_control_stock_oca/__manifest__.py
+++ b/quality_control_stock_oca/__manifest__.py
@@ -5,7 +5,7 @@
{
"name": "Quality control - Stock (OCA)",
- "version": "17.0.1.0.0",
+ "version": "18.0.1.0.0",
"category": "Quality control",
"license": "AGPL-3",
"author": "Tecnativa, AvanzOSC, "
diff --git a/quality_control_stock_oca/static/description/index.html b/quality_control_stock_oca/static/description/index.html
index ce2cfebc95..41e56c9329 100644
--- a/quality_control_stock_oca/static/description/index.html
+++ b/quality_control_stock_oca/static/description/index.html
@@ -8,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
-:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
+:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
+Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
@@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }
-pre.code .ln { color: grey; } /* line numbers */
+pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -368,7 +369,7 @@ Quality control - Stock (OCA)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:31c16627e1481520c4344b7a1508339c42a78253daed82ecb3febaf214a1d52d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module defines triggers that creates inspections when stock moves
are done.
It also adds some shortcuts on picking and lots to these inspections.
@@ -396,7 +397,7 @@
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.
@@ -431,11 +432,13 @@
This module is maintained by the OCA.
-
+
+
+
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_stock_oca/tests/test_quality_control_stock.py b/quality_control_stock_oca/tests/test_quality_control_stock.py
index 0c026c3e82..6924afbf63 100644
--- a/quality_control_stock_oca/tests/test_quality_control_stock.py
+++ b/quality_control_stock_oca/tests/test_quality_control_stock.py
@@ -29,7 +29,8 @@ def setUpClass(cls):
"product_id": cls.product.id,
}
)
- cls.product.detailed_type = "product"
+ cls.product.type = "consu"
+ cls.product.is_storable = True
cls.env["stock.quant"].create(
{
"product_id": cls.product.id,
diff --git a/quality_control_stock_oca/views/stock_picking_view.xml b/quality_control_stock_oca/views/stock_picking_view.xml
index 3b3c8caef3..7e7d45cef3 100644
--- a/quality_control_stock_oca/views/stock_picking_view.xml
+++ b/quality_control_stock_oca/views/stock_picking_view.xml
@@ -5,13 +5,13 @@
Quality inspections from picking
qc.inspection
- tree,form
+ list,form
[('picking_id', '=', active_id)]
Quality inspection from picking done
qc.inspection
- tree,form
+ list,form
[('picking_id', '=', active_id), ('state', 'not in', ['draft', 'waiting'])]
@@ -19,7 +19,7 @@
Quality inspection from picking passed
qc.inspection
- tree,form
+ list,form
[('picking_id', '=', active_id), ('state', '=', 'success')]
@@ -27,7 +27,7 @@
Quality inspections from picking failed
qc.inspection
- tree,form
+ list,form
[('picking_id', '=', active_id), ('state', '=', 'failed')]
diff --git a/quality_control_stock_oca/views/stock_production_lot_view.xml b/quality_control_stock_oca/views/stock_production_lot_view.xml
index afed0e533d..0cd34fff32 100644
--- a/quality_control_stock_oca/views/stock_production_lot_view.xml
+++ b/quality_control_stock_oca/views/stock_production_lot_view.xml
@@ -5,13 +5,13 @@
Quality inspections from lot
qc.inspection
- tree,form
+ list,form
[('lot_id', '=', active_id)]
Quality inspection from lot done
qc.inspection
- tree,form
+ list,form
[('lot_id', '=', active_id), ('state', 'not in', ['draft', 'waiting'])]
@@ -19,7 +19,7 @@
Quality inspection from lot passed
qc.inspection
- tree,form
+ list,form
[('lot_id', '=', active_id), ('state', '=', 'success')]
@@ -27,7 +27,7 @@
Quality inspections from lot failed
qc.inspection
- tree,form
+ list,form
[('lot_id', '=', active_id), ('state', '=', 'failed')]