From ea80e5a45023da1f3105acca1f84358965020670 Mon Sep 17 00:00:00 2001 From: Ruchir Shukla Date: Mon, 13 May 2024 14:20:47 +0530 Subject: [PATCH] [MIG][15.0]stock_quant_reservation_info:Migration to 15.0 --- stock_quant_reservation_info/README.rst | 10 +++++----- stock_quant_reservation_info/__manifest__.py | 2 +- .../models/stock_quant.py | 5 ++++- .../static/description/index.html | 18 ++++++++++-------- .../views/stock_quant.xml | 2 +- 5 files changed, 21 insertions(+), 16 deletions(-) diff --git a/stock_quant_reservation_info/README.rst b/stock_quant_reservation_info/README.rst index d24c84223e02..d36b8c5d6825 100644 --- a/stock_quant_reservation_info/README.rst +++ b/stock_quant_reservation_info/README.rst @@ -17,13 +17,13 @@ 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/14.0/stock_quant_reservation_info + :target: https://github.com/OCA/stock-logistics-warehouse/tree/15.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-14-0/stock-logistics-warehouse-14-0-stock_quant_reservation_info + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-15-0/stock-logistics-warehouse-15-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=14.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=15.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -46,7 +46,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. @@ -76,6 +76,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 93657ade871a..d1238780d747 100644 --- a/stock_quant_reservation_info/__manifest__.py +++ b/stock_quant_reservation_info/__manifest__.py @@ -5,7 +5,7 @@ { "name": "Stock Move Reservation Info", "summary": "Allows to see the reserved info of Products", - "version": "14.0.1.0.6", + "version": "15.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 e05c6dc3fcfd..34b95a0d0df9 100644 --- a/stock_quant_reservation_info/models/stock_quant.py +++ b/stock_quant_reservation_info/models/stock_quant.py @@ -9,7 +9,10 @@ class StockQuant(models.Model): def action_reserved_moves(self): self.ensure_one() action = { - "name": _("Reserved moves for: " + self.product_id.name), + "name": _( + "Reserved Moves for: %(product_name)s", + product_name=self.product_id.name, + ), "view_mode": "list,form", "res_model": "stock.move.line", "views": [ diff --git a/stock_quant_reservation_info/static/description/index.html b/stock_quant_reservation_info/static/description/index.html index 7efbfb2884cc..813b5f7c0126 100644 --- a/stock_quant_reservation_info/static/description/index.html +++ b/stock_quant_reservation_info/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,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. @@ -275,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 } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -369,7 +369,7 @@

Stock Move Reservation Info

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:9b03c3145b145fd483c7773414fb7bc16b40a124780ee6c3fad20bbf481f20c9 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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.

Table of contents

@@ -393,7 +393,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.

@@ -413,11 +413,13 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

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_quant.xml b/stock_quant_reservation_info/views/stock_quant.xml index 85f1b776e864..75cb611c4608 100644 --- a/stock_quant_reservation_info/views/stock_quant.xml +++ b/stock_quant_reservation_info/views/stock_quant.xml @@ -2,7 +2,7 @@ stock.quant.inherit.form.reserved.quant.editable stock.quant - +