From f17c1660e14845458c5154154bd2925fa216e724 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Wed, 14 Aug 2024 08:35:38 +0200 Subject: [PATCH] [MIG] stock_quant_reservation_info: Migration to 16.0 --- stock_quant_reservation_info/README.rst | 14 ++++++++------ stock_quant_reservation_info/__manifest__.py | 5 ++--- stock_quant_reservation_info/models/stock_quant.py | 2 +- .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 3 ++- .../static/description/index.html | 10 ++++++---- .../views/stock_move_line.xml | 2 +- 7 files changed, 21 insertions(+), 16 deletions(-) diff --git a/stock_quant_reservation_info/README.rst b/stock_quant_reservation_info/README.rst index e25bb6f2b..127d25ac5 100644 --- a/stock_quant_reservation_info/README.rst +++ b/stock_quant_reservation_info/README.rst @@ -17,18 +17,19 @@ Stock Move Reservation Info :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github - :target: https://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_quant_reservation_info + :target: https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_quant_reservation_info :alt: OCA/stock-logistics-warehouse .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-15-0/stock-logistics-warehouse-15-0-stock_quant_reservation_info + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_quant_reservation_info :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/stock-logistics-warehouse&target_branch=15.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=16.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module allows to look which pickings, manufacture orders, etc. are reserving the products and check the following source. +This module allows to easily find out which transfers or manufacturing orders +are reserving a product and navigate to those transfers or MOs. **Table of contents** @@ -46,7 +47,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. @@ -62,6 +63,7 @@ Contributors ~~~~~~~~~~~~ * David Jiménez +* Lois Rilo Maintainers ~~~~~~~~~~~ @@ -76,6 +78,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/stock-logistics-warehouse `_ project on GitHub. +This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_quant_reservation_info/__manifest__.py b/stock_quant_reservation_info/__manifest__.py index d1238780d..e7a4c7802 100644 --- a/stock_quant_reservation_info/__manifest__.py +++ b/stock_quant_reservation_info/__manifest__.py @@ -1,11 +1,10 @@ -# Copyright 2019-2020 ForgeFlow S.L. -# (https://www.forgeflow.com) +# Copyright 2022 ForgeFlow # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Stock Move Reservation Info", "summary": "Allows to see the reserved info of Products", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", "category": "Generic", diff --git a/stock_quant_reservation_info/models/stock_quant.py b/stock_quant_reservation_info/models/stock_quant.py index 34b95a0d0..a9b4f88b4 100644 --- a/stock_quant_reservation_info/models/stock_quant.py +++ b/stock_quant_reservation_info/models/stock_quant.py @@ -28,7 +28,7 @@ class StockQuant(models.Model): "context": {}, "domain": [ ("product_id", "=", self.product_id.id), - ("product_uom_qty", ">", 0), + ("reserved_uom_qty", ">", 0), ("location_id.usage", "=", "internal"), ("lot_id", "=", self.lot_id.id), ("owner_id", "=", self.owner_id.id), diff --git a/stock_quant_reservation_info/readme/CONTRIBUTORS.rst b/stock_quant_reservation_info/readme/CONTRIBUTORS.rst index fcd081018..163495e5c 100644 --- a/stock_quant_reservation_info/readme/CONTRIBUTORS.rst +++ b/stock_quant_reservation_info/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * David Jiménez +* Lois Rilo diff --git a/stock_quant_reservation_info/readme/DESCRIPTION.rst b/stock_quant_reservation_info/readme/DESCRIPTION.rst index 5ccbe26f3..49a0fcb5b 100644 --- a/stock_quant_reservation_info/readme/DESCRIPTION.rst +++ b/stock_quant_reservation_info/readme/DESCRIPTION.rst @@ -1 +1,2 @@ -This module allows to look which pickings, manufacture orders, etc. are reserving the products and check the following source. +This module allows to easily find out which transfers or manufacturing orders +are reserving a product and navigate to those transfers or MOs. diff --git a/stock_quant_reservation_info/static/description/index.html b/stock_quant_reservation_info/static/description/index.html index 407a79b21..5b752747d 100644 --- a/stock_quant_reservation_info/static/description/index.html +++ b/stock_quant_reservation_info/static/description/index.html @@ -368,8 +368,9 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:4d1f6855ad12a27aa6bba8b8fff4413651c2118cbfcf89e1583ca9e537b7930d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

-

This module allows to look which pickings, manufacture orders, etc. are reserving the products and check the following source.

+

Beta License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

+

This module allows to easily find out which transfers or manufacturing orders +are reserving a product and navigate to those transfers or MOs.

Table of contents

    @@ -392,7 +393,7 @@ ul.auto-toc {

    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.

@@ -407,6 +408,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

Contributors

@@ -416,7 +418,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/stock-logistics-warehouse project on GitHub.

+

This module is part of the OCA/stock-logistics-warehouse project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/stock_quant_reservation_info/views/stock_move_line.xml b/stock_quant_reservation_info/views/stock_move_line.xml index f0a7ed517..d6edf189a 100644 --- a/stock_quant_reservation_info/views/stock_move_line.xml +++ b/stock_quant_reservation_info/views/stock_move_line.xml @@ -15,7 +15,7 @@ attrs="{'invisible': [('picking_id', '=', False)]}" /> - +