From eedc76863c00dda915e01b1b6589348d8095434d Mon Sep 17 00:00:00 2001 From: hveficent <32061121+hveficent@users.noreply.github.com> Date: Mon, 28 Jan 2019 16:08:02 +0100 Subject: [PATCH 01/28] [11.0][ADD] stock_request_tier_validation (#528) --- stock_request_tier_validation/README.rst | 118 +++++ stock_request_tier_validation/__init__.py | 3 + stock_request_tier_validation/__manifest__.py | 23 + .../data/stock_request_tier_definition.xml | 24 + .../models/__init__.py | 5 + .../models/stock_request.py | 16 + .../models/stock_request_order.py | 16 + .../models/tier_definition.py | 13 + .../readme/CONFIGURE.rst | 7 + .../readme/CONTRIBUTORS.rst | 3 + .../readme/CREDITS.rst | 4 + .../readme/DESCRIPTION.rst | 2 + .../readme/INSTALL.rst | 2 + .../readme/USAGE.rst | 14 + .../static/description/icon.png | Bin 0 -> 7510 bytes .../static/description/index.html | 470 ++++++++++++++++++ .../tests/__init__.py | 1 + .../test_stock_request_tier_validation.py | 26 + .../views/stock_request_order_view.xml | 88 ++++ .../views/stock_request_view.xml | 88 ++++ 20 files changed, 923 insertions(+) create mode 100644 stock_request_tier_validation/README.rst create mode 100644 stock_request_tier_validation/__init__.py create mode 100644 stock_request_tier_validation/__manifest__.py create mode 100644 stock_request_tier_validation/data/stock_request_tier_definition.xml create mode 100644 stock_request_tier_validation/models/__init__.py create mode 100644 stock_request_tier_validation/models/stock_request.py create mode 100644 stock_request_tier_validation/models/stock_request_order.py create mode 100644 stock_request_tier_validation/models/tier_definition.py create mode 100644 stock_request_tier_validation/readme/CONFIGURE.rst create mode 100644 stock_request_tier_validation/readme/CONTRIBUTORS.rst create mode 100644 stock_request_tier_validation/readme/CREDITS.rst create mode 100644 stock_request_tier_validation/readme/DESCRIPTION.rst create mode 100644 stock_request_tier_validation/readme/INSTALL.rst create mode 100644 stock_request_tier_validation/readme/USAGE.rst create mode 100644 stock_request_tier_validation/static/description/icon.png create mode 100644 stock_request_tier_validation/static/description/index.html create mode 100644 stock_request_tier_validation/tests/__init__.py create mode 100644 stock_request_tier_validation/tests/test_stock_request_tier_validation.py create mode 100644 stock_request_tier_validation/views/stock_request_order_view.xml create mode 100644 stock_request_tier_validation/views/stock_request_view.xml diff --git a/stock_request_tier_validation/README.rst b/stock_request_tier_validation/README.rst new file mode 100644 index 000000000..52385d84d --- /dev/null +++ b/stock_request_tier_validation/README.rst @@ -0,0 +1,118 @@ +============================= +Stock Request Tier Validation +============================= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :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/11.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-11-0/stock-logistics-warehouse-11-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/11.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends the functionality of Stock Requests and Stock Request +Orders to support a tier validation process. + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +This module depends on ``base_tier_validation``. You can find it at +`OCA/server-ux `_ + +Configuration +============= + +A default tier is created allowing Stock Request Manager to approve Stock +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. + +Usage +===== + +To use this module, you need to: + +#. Create a Stock Request triggering at least one "Tier Definition". +#. Click on *Request Validation* button. +#. Under the tab *Reviews* have a look to pending reviews and their statuses. +#. Once all reviews are validated button to *Confirm* will be shown. + +Additional features: + +* You can filter the Stock Request requesting your review through the filter *Needs my + Review*. +* User with rights to confirm the Stock Request (validate all tiers that would + be generated) can directly do the operation, this is, there is no need for + her/him to request a validation. + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Eficent + +Contributors +~~~~~~~~~~~~ + +* Lois Rilo +* Héctor Villarreal + +Other credits +~~~~~~~~~~~~~ + +Images +------ + +* Enric Tobella (logo) + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_request_tier_validation/__init__.py b/stock_request_tier_validation/__init__.py new file mode 100644 index 000000000..31660d6a9 --- /dev/null +++ b/stock_request_tier_validation/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import models diff --git a/stock_request_tier_validation/__manifest__.py b/stock_request_tier_validation/__manifest__.py new file mode 100644 index 000000000..87fcb9939 --- /dev/null +++ b/stock_request_tier_validation/__manifest__.py @@ -0,0 +1,23 @@ +# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# 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": "11.0.1.0.0", + "category": "Warehouse Management", + "website": "https://github.com/OCA/stock-logistics-warehouse", + "author": "Eficent, Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "stock_request", + "base_tier_validation", + ], + "data": [ + "data/stock_request_tier_definition.xml", + "views/stock_request_order_view.xml", + "views/stock_request_view.xml", + ], +} diff --git a/stock_request_tier_validation/data/stock_request_tier_definition.xml b/stock_request_tier_validation/data/stock_request_tier_definition.xml new file mode 100644 index 000000000..258a1b501 --- /dev/null +++ b/stock_request_tier_validation/data/stock_request_tier_definition.xml @@ -0,0 +1,24 @@ + + + + + + + + 1==1 + group + + False + + + + + 1==1 + group + + False + + + + diff --git a/stock_request_tier_validation/models/__init__.py b/stock_request_tier_validation/models/__init__.py new file mode 100644 index 000000000..0eea293f2 --- /dev/null +++ b/stock_request_tier_validation/models/__init__.py @@ -0,0 +1,5 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import stock_request +from . import stock_request_order +from . import tier_definition diff --git a/stock_request_tier_validation/models/stock_request.py b/stock_request_tier_validation/models/stock_request.py new file mode 100644 index 000000000..62226320f --- /dev/null +++ b/stock_request_tier_validation/models/stock_request.py @@ -0,0 +1,16 @@ +# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from odoo import api, models + + +class StockRequest(models.Model): + _name = "stock.request" + _inherit = ['stock.request', 'tier.validation'] + _state_from = ['draft'] + _state_to = ['open'] + + @api.model + def _get_under_validation_exceptions(self): + res = super(StockRequest, self)._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 new file mode 100644 index 000000000..223ccfc0b --- /dev/null +++ b/stock_request_tier_validation/models/stock_request_order.py @@ -0,0 +1,16 @@ +# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from odoo import api, models + + +class StockRequest(models.Model): + _name = "stock.request.order" + _inherit = ['stock.request.order', 'tier.validation'] + _state_from = ['draft'] + _state_to = ['open'] + + @api.model + def _get_under_validation_exceptions(self): + res = super(StockRequest, self)._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 new file mode 100644 index 000000000..81aa03d80 --- /dev/null +++ b/stock_request_tier_validation/models/tier_definition.py @@ -0,0 +1,13 @@ +# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from odoo import api, models + + +class TierDefinition(models.Model): + _inherit = "tier.definition" + + @api.model + def _get_tier_validation_model_names(self): + res = super(TierDefinition, self)._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 new file mode 100644 index 000000000..090ea5bdb --- /dev/null +++ b/stock_request_tier_validation/readme/CONFIGURE.rst @@ -0,0 +1,7 @@ +A default tier is created allowing Stock Request Manager to approve Stock +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. diff --git a/stock_request_tier_validation/readme/CONTRIBUTORS.rst b/stock_request_tier_validation/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..8e6bf8cfb --- /dev/null +++ b/stock_request_tier_validation/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Lois Rilo +* Héctor Villarreal + diff --git a/stock_request_tier_validation/readme/CREDITS.rst b/stock_request_tier_validation/readme/CREDITS.rst new file mode 100644 index 000000000..81aa6f7d3 --- /dev/null +++ b/stock_request_tier_validation/readme/CREDITS.rst @@ -0,0 +1,4 @@ +Images +------ + +* Enric Tobella (logo) diff --git a/stock_request_tier_validation/readme/DESCRIPTION.rst b/stock_request_tier_validation/readme/DESCRIPTION.rst new file mode 100644 index 000000000..feb88347c --- /dev/null +++ b/stock_request_tier_validation/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module extends the functionality of Stock Requests and Stock Request +Orders to support a tier validation process. diff --git a/stock_request_tier_validation/readme/INSTALL.rst b/stock_request_tier_validation/readme/INSTALL.rst new file mode 100644 index 000000000..638fbd2d6 --- /dev/null +++ b/stock_request_tier_validation/readme/INSTALL.rst @@ -0,0 +1,2 @@ +This module depends on ``base_tier_validation``. You can find it at +`OCA/server-ux `_ diff --git a/stock_request_tier_validation/readme/USAGE.rst b/stock_request_tier_validation/readme/USAGE.rst new file mode 100644 index 000000000..c47071d98 --- /dev/null +++ b/stock_request_tier_validation/readme/USAGE.rst @@ -0,0 +1,14 @@ +To use this module, you need to: + +#. Create a Stock Request triggering at least one "Tier Definition". +#. Click on *Request Validation* button. +#. Under the tab *Reviews* have a look to pending reviews and their statuses. +#. Once all reviews are validated button to *Confirm* will be shown. + +Additional features: + +* You can filter the Stock Request requesting your review through the filter *Needs my + Review*. +* User with rights to confirm the Stock Request (validate all tiers that would + be generated) can directly do the operation, this is, there is no need for + her/him to request a validation. diff --git a/stock_request_tier_validation/static/description/icon.png b/stock_request_tier_validation/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..c31ecfd9f58e3ab7e0ede0f1d56185d51074099c GIT binary patch literal 7510 zcmc(EWmJ@1^e>%52uPRGih$(MgCO0ggp`5|B{d@mNQ_8#3k>ywA}tIxq)OKSQUU@3 z!VD!6gEaTS_r2?X@2C6mu359rv(DaU$8Yab`$QWXYSB=!QxOml(CBDum=X{WI$!-M z$bg=J)hClcL-tfpOM~F@>Q~TKk_z-tdTCq22neVdul|Gt*+^EPlN_#NaG!jcgpyi} zmv2ke3Fu;j-?xCPdp>{u%mYrK?(^&k{Fx)Kp9|cXS4+ph*c?I2LO{UTuA`y$;N|T0 zyuW+S`V;Ifk4}HFV}C~FXSS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r$@-&sH; z&XI&pqY_gs&rdg$NumMaPYV2IWlM4QuXF&+EYVUQ4J*|6y1f@LLu|aG61K=e3m6%N zbQ}wI(ro?8oF~QLoiulGue_`83UH=ggH+cQCzIYgN9ExKb^^qeU4X+3P~I#%Z8jo) zallVHz+A+#^>D5+@TRxYjn=GH5wi4^WQI_E?E32k-dY?22sFp2g| qJBnmc1b^FaQP%UBXsGmY2o3DoX1di35AfVcpmX0)qw1dh>;DBm+(G~V literal 0 HcmV?d00001 diff --git a/stock_request_tier_validation/static/description/index.html b/stock_request_tier_validation/static/description/index.html new file mode 100644 index 000000000..a5b9a390e --- /dev/null +++ b/stock_request_tier_validation/static/description/index.html @@ -0,0 +1,470 @@ + + + + + + +Stock Request Tier Validation + + + +
+

Stock Request Tier Validation

+ + +

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

+ +
+

Installation

+

This module depends on base_tier_validation. You can find it at +OCA/server-ux

+
+
+

Configuration

+

A default tier is created allowing Stock Request Manager to approve Stock +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. +
+
+
+

Usage

+

To use this module, you need to:

+
    +
  1. Create a Stock Request triggering at least one “Tier Definition”.
  2. +
  3. Click on Request Validation button.
  4. +
  5. Under the tab Reviews have a look to pending reviews and their statuses.
  6. +
  7. Once all reviews are validated button to Confirm will be shown.
  8. +
+

Additional features:

+
    +
  • You can filter the Stock Request requesting your review through the filter Needs my +Review.
  • +
  • User with rights to confirm the Stock Request (validate all tiers that would +be generated) can directly do the operation, this is, there is no need for +her/him to request a validation.
  • +
+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Eficent
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+
+

Images

+
    +
  • Enric Tobella (logo)
  • +
+
+
+
+

Maintainers

+

This module is maintained by the OCA.

+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.

+

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

+
+
+
+ + diff --git a/stock_request_tier_validation/tests/__init__.py b/stock_request_tier_validation/tests/__init__.py new file mode 100644 index 000000000..645f62cfc --- /dev/null +++ b/stock_request_tier_validation/tests/__init__.py @@ -0,0 +1 @@ +from . import test_stock_request_tier_validation \ No newline at end of file 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 new file mode 100644 index 000000000..b3de6fdf5 --- /dev/null +++ b/stock_request_tier_validation/tests/test_stock_request_tier_validation.py @@ -0,0 +1,26 @@ +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0). + +from odoo.tests import common + + +class TestStockRequest(common.TransactionCase): + def setUp(self): + super(TestStockRequest, self).setUp() + + # common models + self.stock_request = self.env['stock.request'] + self.request_order = self.env['stock.request.order'] + self.tier_definition = self.env['tier.definition'] + + def test_get_under_validation_exceptions(self): + self.assertIn('route_id', + self.stock_request._get_under_validation_exceptions()) + self.assertIn('route_id', + self.request_order._get_under_validation_exceptions()) + + def test_get_tier_validation_model_names(self): + self.assertIn('stock.request', + self.tier_definition._get_tier_validation_model_names()) + self.assertIn('stock.request.order', + self.tier_definition._get_tier_validation_model_names()) diff --git a/stock_request_tier_validation/views/stock_request_order_view.xml b/stock_request_tier_validation/views/stock_request_order_view.xml new file mode 100644 index 000000000..2b070a5da --- /dev/null +++ b/stock_request_tier_validation/views/stock_request_order_view.xml @@ -0,0 +1,88 @@ + + + + + + stock.request.order.tier.validation.form + stock.request.order + + + + +
+ + + +
+

This Stock Request needs to be + validated. + +

+
+

Operation has been validated!

+
+
+

Operation has been rejected.

+
+
+ + + + + +
+
+ + + stock.request.select - stock_request_tier_validation + stock.request + + + + + + + + + + + +
diff --git a/stock_request_tier_validation/views/stock_request_view.xml b/stock_request_tier_validation/views/stock_request_view.xml new file mode 100644 index 000000000..6f7cf931f --- /dev/null +++ b/stock_request_tier_validation/views/stock_request_view.xml @@ -0,0 +1,88 @@ + + + + + + stock.request.tier.validation.form + stock.request + + + + +
+ + + +
+

This Stock Request needs to be + validated. + +

+
+

Operation has been validated!

+
+
+

Operation has been rejected.

+
+
+ + + + + +
+
+ + + stock.request.select - stock_request_tier_validation + stock.request + + + + + + + + + + + +
From 0ab1a6374fedcbfc5b10d3025e3b29b796c53495 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 28 Jan 2019 15:08:19 +0000 Subject: [PATCH 02/28] [UPD] README.rst --- stock_request_tier_validation/README.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/stock_request_tier_validation/README.rst b/stock_request_tier_validation/README.rst index 52385d84d..171457d37 100644 --- a/stock_request_tier_validation/README.rst +++ b/stock_request_tier_validation/README.rst @@ -92,6 +92,7 @@ Contributors * Lois Rilo * Héctor Villarreal + Other credits ~~~~~~~~~~~~~ From 3485351ea74edc0b329733ce8c0a6968de883045 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Mon, 28 Jan 2019 16:30:30 +0000 Subject: [PATCH 03/28] [UPD] Update stock_request_tier_validation.pot --- .../i18n/stock_request_tier_validation.pot | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 stock_request_tier_validation/i18n/stock_request_tier_validation.pot diff --git a/stock_request_tier_validation/i18n/stock_request_tier_validation.pot b/stock_request_tier_validation/i18n/stock_request_tier_validation.pot new file mode 100644 index 000000000..6d32d081d --- /dev/null +++ b/stock_request_tier_validation/i18n/stock_request_tier_validation.pot @@ -0,0 +1,109 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_request_tier_validation +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid "This Stock Request needs to be\n" +" validated." +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid " Operation has been rejected." +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid " Operation has been validated!" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter +msgid "My Purchases to review" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter +msgid "Need actions" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter +msgid "Needs my Review" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid "Reject" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid "Request Validation" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid "Restart Validation" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid "Reviews" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.model,name:stock_request_tier_validation.model_stock_request +msgid "Stock Request" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.model,name:stock_request_tier_validation.model_stock_request_order +msgid "Stock Request Order" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter +msgid "Stock Requests validated and ready to be confirmed" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid "Validate" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter +msgid "Validated" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.model,name:stock_request_tier_validation.model_tier_definition +msgid "tier.definition" +msgstr "" + From 396a9f49f3e3e18dcb4f323b3b390d4bb1b43f28 Mon Sep 17 00:00:00 2001 From: hveficent Date: Mon, 6 May 2019 13:34:48 +0200 Subject: [PATCH 04/28] [11.0][FIX] stock_request_tier_validation: update tier definitions --- stock_request_tier_validation/__manifest__.py | 2 +- .../data/stock_request_tier_definition.xml | 6 ++- .../views/stock_request_order_view.xml | 39 ++++++++++++++++--- .../views/stock_request_view.xml | 39 ++++++++++++++++--- 4 files changed, 73 insertions(+), 13 deletions(-) diff --git a/stock_request_tier_validation/__manifest__.py b/stock_request_tier_validation/__manifest__.py index 87fcb9939..9103c6623 100644 --- a/stock_request_tier_validation/__manifest__.py +++ b/stock_request_tier_validation/__manifest__.py @@ -4,7 +4,7 @@ "name": "Stock Request Tier Validation", "summary": "Extends the functionality of Stock Requests to " "support a tier validation process.", - "version": "11.0.1.0.0", + "version": "11.0.1.0.1", "category": "Warehouse Management", "website": "https://github.com/OCA/stock-logistics-warehouse", "author": "Eficent, Odoo Community Association (OCA)", diff --git a/stock_request_tier_validation/data/stock_request_tier_definition.xml b/stock_request_tier_validation/data/stock_request_tier_definition.xml index 258a1b501..1c3cbb468 100644 --- a/stock_request_tier_validation/data/stock_request_tier_definition.xml +++ b/stock_request_tier_validation/data/stock_request_tier_definition.xml @@ -6,7 +6,8 @@ - 1==1 + domain + group False @@ -14,7 +15,8 @@ - 1==1 + domain + group False 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 2b070a5da..46ee7d8af 100644 --- a/stock_request_tier_validation/views/stock_request_order_view.xml +++ b/stock_request_tier_validation/views/stock_request_order_view.xml @@ -59,11 +59,9 @@

Operation has been rejected.

- - - - - +
+ +
@@ -85,4 +83,35 @@
+ + stock.request.order.reviews + stock.request.order + +
+ + + + + + + + + + + + +
+
+
+
+
+ diff --git a/stock_request_tier_validation/views/stock_request_view.xml b/stock_request_tier_validation/views/stock_request_view.xml index 6f7cf931f..d879dd4e8 100644 --- a/stock_request_tier_validation/views/stock_request_view.xml +++ b/stock_request_tier_validation/views/stock_request_view.xml @@ -59,11 +59,9 @@

Operation has been rejected.

- - - - - +
+ +
@@ -85,4 +83,35 @@ + + stock.request.order.reviews + stock.request.order + +
+ + + + + + + + + + + + +
+
+
+
+
+ From 5bdbf3c114e5284cbadc50aa437924008897389f Mon Sep 17 00:00:00 2001 From: oca-travis Date: Tue, 7 May 2019 15:15:21 +0000 Subject: [PATCH 05/28] [UPD] Update stock_request_tier_validation.pot --- .../i18n/stock_request_tier_validation.pot | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/stock_request_tier_validation/i18n/stock_request_tier_validation.pot b/stock_request_tier_validation/i18n/stock_request_tier_validation.pot index 6d32d081d..2d174a2e0 100644 --- a/stock_request_tier_validation/i18n/stock_request_tier_validation.pot +++ b/stock_request_tier_validation/i18n/stock_request_tier_validation.pot @@ -32,6 +32,12 @@ msgstr "" msgid " Operation has been validated!" msgstr "" +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_form_wiz +#: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_order_form_wiz +msgid "Dismiss" +msgstr "" + #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter @@ -68,12 +74,6 @@ msgstr "" msgid "Restart Validation" msgstr "" -#. module: stock_request_tier_validation -#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier -#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier -msgid "Reviews" -msgstr "" - #. module: stock_request_tier_validation #: model:ir.model,name:stock_request_tier_validation.model_stock_request msgid "Stock Request" @@ -90,6 +90,12 @@ msgstr "" msgid "Stock Requests validated and ready to be confirmed" msgstr "" +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_form_wiz +#: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_order_form_wiz +msgid "Tier Review" +msgstr "" + #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier From 97c46ce2c8637c4a54396513adeeb583fef38e6f Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Wed, 15 May 2019 08:49:32 +0000 Subject: [PATCH 06/28] Added translation using Weblate (Spanish) --- stock_request_tier_validation/i18n/es.po | 115 +++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 stock_request_tier_validation/i18n/es.po diff --git a/stock_request_tier_validation/i18n/es.po b/stock_request_tier_validation/i18n/es.po new file mode 100644 index 000000000..2a405a504 --- /dev/null +++ b/stock_request_tier_validation/i18n/es.po @@ -0,0 +1,115 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_request_tier_validation +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid "This Stock Request needs to be\n" +" validated." +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid " Operation has been rejected." +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid " Operation has been validated!" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_form_wiz +#: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_order_form_wiz +msgid "Dismiss" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter +msgid "My Purchases to review" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter +msgid "Need actions" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter +msgid "Needs my Review" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid "Reject" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid "Request Validation" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid "Restart Validation" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.model,name:stock_request_tier_validation.model_stock_request +msgid "Stock Request" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.model,name:stock_request_tier_validation.model_stock_request_order +msgid "Stock Request Order" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter +msgid "Stock Requests validated and ready to be confirmed" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_form_wiz +#: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_order_form_wiz +msgid "Tier Review" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier +msgid "Validate" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter +msgid "Validated" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.model,name:stock_request_tier_validation.model_tier_definition +msgid "tier.definition" +msgstr "" From 5f88a47dcb52e639677f8ce4c9ed3569bf860a30 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Wed, 15 May 2019 13:09:29 +0000 Subject: [PATCH 07/28] Translated using Weblate (Spanish) Currently translated at 94.1% (16 of 17 strings) Translation: stock-logistics-warehouse-11.0/stock-logistics-warehouse-11.0-stock_request_tier_validation Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-11-0/stock-logistics-warehouse-11-0-stock_request_tier_validation/es/ --- stock_request_tier_validation/i18n/es.po | 36 +++++++++++++----------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/stock_request_tier_validation/i18n/es.po b/stock_request_tier_validation/i18n/es.po index 2a405a504..9370f46ba 100644 --- a/stock_request_tier_validation/i18n/es.po +++ b/stock_request_tier_validation/i18n/es.po @@ -6,13 +6,15 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2019-05-15 15:59+0000\n" +"Last-Translator: Lois Rilo \n" "Language-Team: none\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.6.1\n" #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier @@ -20,24 +22,26 @@ msgstr "" msgid "This Stock Request needs to be\n" " validated." msgstr "" +"Esta Solicitud de existencias debe ser\n" +" validada." #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier msgid " Operation has been rejected." -msgstr "" +msgstr "La operación ha sido rechazada." #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier msgid " Operation has been validated!" -msgstr "" +msgstr "La operación ha sido validada!" #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_form_wiz #: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_order_form_wiz msgid "Dismiss" -msgstr "" +msgstr "Descartar" #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter @@ -49,67 +53,67 @@ msgstr "" #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter msgid "Need actions" -msgstr "" +msgstr "Acción necesaria" #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter msgid "Needs my Review" -msgstr "" +msgstr "Necesita mi revisión" #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier msgid "Reject" -msgstr "" +msgstr "Rechazar" #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier msgid "Request Validation" -msgstr "" +msgstr "Solicitar Validación" #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier msgid "Restart Validation" -msgstr "" +msgstr "Reiniciar Validación" #. module: stock_request_tier_validation #: model:ir.model,name:stock_request_tier_validation.model_stock_request msgid "Stock Request" -msgstr "" +msgstr "Solicitud de existencias" #. module: stock_request_tier_validation #: model:ir.model,name:stock_request_tier_validation.model_stock_request_order msgid "Stock Request Order" -msgstr "" +msgstr "Pedido de existencias" #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter msgid "Stock Requests validated and ready to be confirmed" -msgstr "" +msgstr "Pedido de existencias validadas y preparadas para ser confirmadas" #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_form_wiz #: model:ir.ui.view,arch_db:stock_request_tier_validation.tier_review_order_form_wiz msgid "Tier Review" -msgstr "" +msgstr "Revisión de nivel" #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier msgid "Validate" -msgstr "" +msgstr "Validar" #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter msgid "Validated" -msgstr "" +msgstr "Validada" #. module: stock_request_tier_validation #: model:ir.model,name:stock_request_tier_validation.model_tier_definition msgid "tier.definition" -msgstr "" +msgstr "tier.definition" From 1a3eb1edd6cd0a19b97d40e04b4078e44877170e Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Thu, 16 May 2019 09:00:07 +0200 Subject: [PATCH 08/28] [11.0][FIX] stock_request_tier_validation: small typos and missing name. --- .../data/stock_request_tier_definition.xml | 2 ++ .../views/stock_request_order_view.xml | 2 +- stock_request_tier_validation/views/stock_request_view.xml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/stock_request_tier_validation/data/stock_request_tier_definition.xml b/stock_request_tier_validation/data/stock_request_tier_definition.xml index 1c3cbb468..6f6f87138 100644 --- a/stock_request_tier_validation/data/stock_request_tier_definition.xml +++ b/stock_request_tier_validation/data/stock_request_tier_definition.xml @@ -5,6 +5,7 @@ + Manager review domain @@ -14,6 +15,7 @@ + Manager review domain 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 46ee7d8af..9a472107d 100644 --- a/stock_request_tier_validation/views/stock_request_order_view.xml +++ b/stock_request_tier_validation/views/stock_request_order_view.xml @@ -74,7 +74,7 @@ + help="My Stock Request Orders to review"/> diff --git a/stock_request_tier_validation/views/stock_request_view.xml b/stock_request_tier_validation/views/stock_request_view.xml index d879dd4e8..7809c5a54 100644 --- a/stock_request_tier_validation/views/stock_request_view.xml +++ b/stock_request_tier_validation/views/stock_request_view.xml @@ -74,7 +74,7 @@ + help="My Stock Requests to review"/> From 96e87cc50325c93a0fcf751d28d4b9b47485f115 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Thu, 16 May 2019 07:45:03 +0000 Subject: [PATCH 09/28] [UPD] Update stock_request_tier_validation.pot --- .../i18n/stock_request_tier_validation.pot | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stock_request_tier_validation/i18n/stock_request_tier_validation.pot b/stock_request_tier_validation/i18n/stock_request_tier_validation.pot index 2d174a2e0..01638dcef 100644 --- a/stock_request_tier_validation/i18n/stock_request_tier_validation.pot +++ b/stock_request_tier_validation/i18n/stock_request_tier_validation.pot @@ -39,9 +39,13 @@ msgid "Dismiss" msgstr "" #. module: stock_request_tier_validation -#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter -msgid "My Purchases to review" +msgid "My Stock Request Orders to review" +msgstr "" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter +msgid "My Stock Requests to review" msgstr "" #. module: stock_request_tier_validation From e4bdc5f655bed2989d6334f431a2c04ef218f215 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Mon, 20 May 2019 21:05:22 +0000 Subject: [PATCH 10/28] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: stock-logistics-warehouse-11.0/stock-logistics-warehouse-11.0-stock_request_tier_validation Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-11-0/stock-logistics-warehouse-11-0-stock_request_tier_validation/ --- stock_request_tier_validation/i18n/es.po | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/stock_request_tier_validation/i18n/es.po b/stock_request_tier_validation/i18n/es.po index 9370f46ba..453af43ba 100644 --- a/stock_request_tier_validation/i18n/es.po +++ b/stock_request_tier_validation/i18n/es.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * stock_request_tier_validation +# * stock_request_tier_validation # msgid "" msgstr "" @@ -19,7 +19,8 @@ msgstr "" #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.stock_request_order_form_inherit_tier #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_form_inherit_tier -msgid "This Stock Request needs to be\n" +msgid "" +"This Stock Request needs to be\n" " validated." msgstr "" "Esta Solicitud de existencias debe ser\n" @@ -44,10 +45,18 @@ msgid "Dismiss" msgstr "Descartar" #. module: stock_request_tier_validation -#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter -msgid "My Purchases to review" -msgstr "" +#, fuzzy +#| msgid "Stock Request Order" +msgid "My Stock Request Orders to review" +msgstr "Pedido de existencias" + +#. module: stock_request_tier_validation +#: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter +#, fuzzy +#| msgid "Stock Request Order" +msgid "My Stock Requests to review" +msgstr "Pedido de existencias" #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_filter From b67f85a1dae6d0f8ed30b864ce55c9dce112cc56 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Mon, 27 May 2019 18:22:13 +0000 Subject: [PATCH 11/28] [UPD] Update stock_request_tier_validation.pot --- .../i18n/stock_request_tier_validation.pot | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stock_request_tier_validation/i18n/stock_request_tier_validation.pot b/stock_request_tier_validation/i18n/stock_request_tier_validation.pot index 01638dcef..bc98c5b22 100644 --- a/stock_request_tier_validation/i18n/stock_request_tier_validation.pot +++ b/stock_request_tier_validation/i18n/stock_request_tier_validation.pot @@ -38,6 +38,12 @@ msgstr "" msgid "Dismiss" msgstr "" +#. module: stock_request_tier_validation +#: model:tier.definition,name:stock_request_tier_validation.stock_request_default_tier_definition +#: model:tier.definition,name:stock_request_tier_validation.stock_request_order_default_tier_definition +msgid "Manager review" +msgstr "" + #. module: stock_request_tier_validation #: model:ir.ui.view,arch_db:stock_request_tier_validation.view_stock_request_order_filter msgid "My Stock Request Orders to review" From 0119659a12c71ee10ec5717a80809a3a516e9bc4 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Wed, 29 May 2019 12:10:33 +0200 Subject: [PATCH 12/28] [12.0][MIG] stock_request_tier_validation --- stock_request_tier_validation/README.rst | 10 +++++----- stock_request_tier_validation/__init__.py | 2 -- stock_request_tier_validation/__manifest__.py | 2 +- stock_request_tier_validation/models/__init__.py | 2 -- .../static/description/index.html | 6 +++--- .../views/stock_request_order_view.xml | 3 +++ .../views/stock_request_view.xml | 3 +++ 7 files changed, 15 insertions(+), 13 deletions(-) diff --git a/stock_request_tier_validation/README.rst b/stock_request_tier_validation/README.rst index 171457d37..3eb034ddd 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/11.0/stock_request_tier_validation + :target: https://github.com/OCA/stock-logistics-warehouse/tree/12.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-11-0/stock-logistics-warehouse-11-0-stock_request_tier_validation + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-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/11.0 + :target: https://runbot.odoo-community.org/runbot/153/12.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -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. @@ -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/__init__.py b/stock_request_tier_validation/__init__.py index 31660d6a9..0650744f6 100644 --- a/stock_request_tier_validation/__init__.py +++ b/stock_request_tier_validation/__init__.py @@ -1,3 +1 @@ -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). - from . import models diff --git a/stock_request_tier_validation/__manifest__.py b/stock_request_tier_validation/__manifest__.py index 9103c6623..e0392b715 100644 --- a/stock_request_tier_validation/__manifest__.py +++ b/stock_request_tier_validation/__manifest__.py @@ -4,7 +4,7 @@ "name": "Stock Request Tier Validation", "summary": "Extends the functionality of Stock Requests to " "support a tier validation process.", - "version": "11.0.1.0.1", + "version": "12.0.1.0.0", "category": "Warehouse Management", "website": "https://github.com/OCA/stock-logistics-warehouse", "author": "Eficent, Odoo Community Association (OCA)", diff --git a/stock_request_tier_validation/models/__init__.py b/stock_request_tier_validation/models/__init__.py index 0eea293f2..91fd0df28 100644 --- a/stock_request_tier_validation/models/__init__.py +++ b/stock_request_tier_validation/models/__init__.py @@ -1,5 +1,3 @@ -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). - from . import stock_request from . import stock_request_order from . import tier_definition diff --git a/stock_request_tier_validation/static/description/index.html b/stock_request_tier_validation/static/description/index.html index a5b9a390e..dff5607b6 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

@@ -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.

@@ -461,7 +461,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/views/stock_request_order_view.xml b/stock_request_tier_validation/views/stock_request_order_view.xml index 9a472107d..d19ba13c0 100644 --- a/stock_request_tier_validation/views/stock_request_order_view.xml +++ b/stock_request_tier_validation/views/stock_request_order_view.xml @@ -27,6 +27,7 @@