From e7ce8f800f1cb800a9dad0509b5dd1481b71ee2a Mon Sep 17 00:00:00 2001 From: ps-tubtim Date: Mon, 30 Mar 2020 18:58:16 +0700 Subject: [PATCH] [MIG] stock_request_tier_validation: Migration to 13.0 --- stock_request_tier_validation/README.rst | 20 +++++++++---------- stock_request_tier_validation/__manifest__.py | 6 +++--- .../models/stock_request.py | 4 ++-- .../models/stock_request_order.py | 6 +++--- .../models/tier_definition.py | 4 ++-- .../readme/CONFIGURE.rst | 2 +- .../readme/CONTRIBUTORS.rst | 5 +++-- .../static/description/index.html | 15 +++++++------- .../test_stock_request_tier_validation.py | 2 +- .../views/stock_request_order_view.xml | 2 +- .../views/stock_request_view.xml | 2 +- 11 files changed, 35 insertions(+), 33 deletions(-) diff --git a/stock_request_tier_validation/README.rst b/stock_request_tier_validation/README.rst index 3eb034ddd..896a7e563 100644 --- a/stock_request_tier_validation/README.rst +++ b/stock_request_tier_validation/README.rst @@ -14,13 +14,13 @@ Stock Request Tier Validation :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/12.0/stock_request_tier_validation + :target: https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_request_tier_validation :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-12-0/stock-logistics-warehouse-12-0-stock_request_tier_validation + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_request_tier_validation :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/153/12.0 + :target: https://runbot.odoo-community.org/runbot/153/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -48,7 +48,7 @@ Request and Stock Request Orders. In addition, you may want to add more tiers, so: #. Go to *Settings > Technical > Tier Validations > Tier Definition*. -#. Create as many tiers as you want for Purchase Order model. +#. Create as many tiers as you want for Stock Request model. Usage ===== @@ -74,7 +74,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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -84,14 +84,14 @@ Credits Authors ~~~~~~~ -* Eficent +* ForgeFlow Contributors ~~~~~~~~~~~~ -* Lois Rilo -* Héctor Villarreal - +* Lois Rilo +* Héctor Villarreal +* Pimolnat Suntian Other credits ~~~~~~~~~~~~~ @@ -114,6 +114,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_request_tier_validation/__manifest__.py b/stock_request_tier_validation/__manifest__.py index 1a85ccb4a..0e861ee76 100644 --- a/stock_request_tier_validation/__manifest__.py +++ b/stock_request_tier_validation/__manifest__.py @@ -1,13 +1,13 @@ -# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# Copyright 2019-2020 ForgeFlow S.L. (https://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Stock Request Tier Validation", "summary": "Extends the functionality of Stock Requests to " "support a tier validation process.", "version": "13.0.1.0.0", - "category": "Warehouse Management", + "category": "Warehouse", "website": "https://github.com/OCA/stock-logistics-warehouse", - "author": "Eficent, Odoo Community Association (OCA)", + "author": "ForgeFlow, Odoo Community Association (OCA)", "license": "AGPL-3", "application": False, "installable": True, diff --git a/stock_request_tier_validation/models/stock_request.py b/stock_request_tier_validation/models/stock_request.py index a53022410..dd6c5de7b 100644 --- a/stock_request_tier_validation/models/stock_request.py +++ b/stock_request_tier_validation/models/stock_request.py @@ -1,4 +1,4 @@ -# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# Copyright 2019-2020 ForgeFlow S.L. (https://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, models @@ -11,6 +11,6 @@ class StockRequest(models.Model): @api.model def _get_under_validation_exceptions(self): - res = super(StockRequest, self)._get_under_validation_exceptions() + res = super()._get_under_validation_exceptions() res.append("route_id") return res diff --git a/stock_request_tier_validation/models/stock_request_order.py b/stock_request_tier_validation/models/stock_request_order.py index aaa95d561..2b1b881da 100644 --- a/stock_request_tier_validation/models/stock_request_order.py +++ b/stock_request_tier_validation/models/stock_request_order.py @@ -1,9 +1,9 @@ -# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# Copyright 2019-2020 ForgeFlow S.L. (https://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, models -class StockRequest(models.Model): +class StockRequestOrder(models.Model): _name = "stock.request.order" _inherit = ["stock.request.order", "tier.validation"] _state_from = ["draft"] @@ -11,6 +11,6 @@ class StockRequest(models.Model): @api.model def _get_under_validation_exceptions(self): - res = super(StockRequest, self)._get_under_validation_exceptions() + res = super()._get_under_validation_exceptions() res.append("route_id") return res diff --git a/stock_request_tier_validation/models/tier_definition.py b/stock_request_tier_validation/models/tier_definition.py index 81aa03d80..4016a66d0 100644 --- a/stock_request_tier_validation/models/tier_definition.py +++ b/stock_request_tier_validation/models/tier_definition.py @@ -1,4 +1,4 @@ -# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# Copyright 2019-2020 ForgeFlow S.L. (https://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, models @@ -8,6 +8,6 @@ class TierDefinition(models.Model): @api.model def _get_tier_validation_model_names(self): - res = super(TierDefinition, self)._get_tier_validation_model_names() + res = super()._get_tier_validation_model_names() res.extend(("stock.request", "stock.request.order")) return res diff --git a/stock_request_tier_validation/readme/CONFIGURE.rst b/stock_request_tier_validation/readme/CONFIGURE.rst index 090ea5bdb..9af3159de 100644 --- a/stock_request_tier_validation/readme/CONFIGURE.rst +++ b/stock_request_tier_validation/readme/CONFIGURE.rst @@ -4,4 +4,4 @@ Request and Stock Request Orders. In addition, you may want to add more tiers, so: #. Go to *Settings > Technical > Tier Validations > Tier Definition*. -#. Create as many tiers as you want for Purchase Order model. +#. Create as many tiers as you want for Stock Request model. diff --git a/stock_request_tier_validation/readme/CONTRIBUTORS.rst b/stock_request_tier_validation/readme/CONTRIBUTORS.rst index e1bdc1501..9af8645b7 100644 --- a/stock_request_tier_validation/readme/CONTRIBUTORS.rst +++ b/stock_request_tier_validation/readme/CONTRIBUTORS.rst @@ -1,2 +1,3 @@ -* Lois Rilo -* Héctor Villarreal +* Lois Rilo +* Héctor Villarreal +* Pimolnat Suntian diff --git a/stock_request_tier_validation/static/description/index.html b/stock_request_tier_validation/static/description/index.html index 5dc30a51b..8f115be8a 100644 --- a/stock_request_tier_validation/static/description/index.html +++ b/stock_request_tier_validation/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module extends the functionality of Stock Requests and Stock Request Orders to support a tier validation process.

Table of contents

@@ -401,7 +401,7 @@ Request and Stock Request Orders.

In addition, you may want to add more tiers, so:

  1. Go to Settings > Technical > Tier Validations > Tier Definition.
  2. -
  3. Create as many tiers as you want for Purchase Order model.
  4. +
  5. Create as many tiers as you want for Stock Request model.
@@ -427,7 +427,7 @@ her/him to request a validation.

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 smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -435,14 +435,15 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

Authors

    -
  • Eficent
  • +
  • ForgeFlow

Contributors

@@ -461,7 +462,7 @@ If you spotted it first, help us smashing 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_request_tier_validation/tests/test_stock_request_tier_validation.py b/stock_request_tier_validation/tests/test_stock_request_tier_validation.py index 0bcf04935..b8c97ba92 100644 --- a/stock_request_tier_validation/tests/test_stock_request_tier_validation.py +++ b/stock_request_tier_validation/tests/test_stock_request_tier_validation.py @@ -1,4 +1,4 @@ -# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# Copyright 2017-2020 ForgeFlow S.L. (https://www.forgeflow.com) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0). from odoo.tests import common diff --git a/stock_request_tier_validation/views/stock_request_order_view.xml b/stock_request_tier_validation/views/stock_request_order_view.xml index e16dcc460..dc683dd11 100644 --- a/stock_request_tier_validation/views/stock_request_order_view.xml +++ b/stock_request_tier_validation/views/stock_request_order_view.xml @@ -1,5 +1,5 @@ - diff --git a/stock_request_tier_validation/views/stock_request_view.xml b/stock_request_tier_validation/views/stock_request_view.xml index 1106d4b7f..2042e84df 100644 --- a/stock_request_tier_validation/views/stock_request_view.xml +++ b/stock_request_tier_validation/views/stock_request_view.xml @@ -1,5 +1,5 @@ -