From c546eba20e5b00b7885f833e96f9e07a3d38564e Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Tue, 31 Dec 2019 16:12:11 -0600 Subject: [PATCH] [12.0][MIG] stock_putaway_method Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_putaway_method Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_putaway_method/ --- stock_putaway_method/README.rst | 88 +++- stock_putaway_method/__init__.py | 1 - stock_putaway_method/__manifest__.py | 9 +- stock_putaway_method/i18n/cs_CZ.po | 2 +- stock_putaway_method/i18n/fr.po | 2 +- .../i18n/stock_putaway_method.pot | 4 +- .../models/product_strategy.py | 1 - stock_putaway_method/readme/CONTRIBUTORS.rst | 7 + stock_putaway_method/readme/DESCRIPTION.rst | 1 + stock_putaway_method/readme/USAGE.rst | 3 + .../static/description/index.html | 437 ++++++++++++++++++ .../views/product_strategy_views.xml | 7 +- 12 files changed, 525 insertions(+), 37 deletions(-) create mode 100644 stock_putaway_method/readme/CONTRIBUTORS.rst create mode 100644 stock_putaway_method/readme/DESCRIPTION.rst create mode 100644 stock_putaway_method/readme/USAGE.rst create mode 100644 stock_putaway_method/static/description/index.html diff --git a/stock_putaway_method/README.rst b/stock_putaway_method/README.rst index 5a5fb32c7..af50ec200 100644 --- a/stock_putaway_method/README.rst +++ b/stock_putaway_method/README.rst @@ -1,50 +1,94 @@ -.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png - :target: https://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 - ======================= Putaway strategy method ======================= -This module adds the putaway strategy method back, removed from the stock module in Odoo 11. +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -Installation -============ +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png + :target: https://odoo-community.org/page/development-status + :alt: Production/Stable +.. |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/12.0/stock_putaway_method + :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_putaway_method + :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 + :alt: Try me on Runbot -To install this module, just click the install button. This module is automatically installed when installing relying modules such as *stock_putaway_product*. +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the putaway strategy method back, removed from the stock module in Odoo 12. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +* Create your own new module to implement new putaway strategies +* Extend the method `_get_putaway_options` to add your new method in the list + of available strategies 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 smash it by providing detailed and welcomed feedback. +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 ======= -Images ------- +Authors +~~~~~~~ -* Odoo Community Association: `Icon `_. +* Camptocamp SA Contributors ------------- +~~~~~~~~~~~~ -* Alexandre Saunier - Camptocamp SA +* Camptocamp -Maintainer ----------- + * Alexandre Saunier + +* Open Source Integrators + + * Maxime Chambreuil + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -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. -To contribute to this module, please visit https://odoo-community.org. +.. |maintainer-asaunier| image:: https://github.com/asaunier.png?size=40px + :target: https://github.com/asaunier + :alt: asaunier + +Current `maintainer `__: + +|maintainer-asaunier| + +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_putaway_method/__init__.py b/stock_putaway_method/__init__.py index 1ca945db8..02179fb04 100644 --- a/stock_putaway_method/__init__.py +++ b/stock_putaway_method/__init__.py @@ -1,3 +1,2 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import models -from . import tests diff --git a/stock_putaway_method/__manifest__.py b/stock_putaway_method/__manifest__.py index 1bd1497f6..5554a3a7f 100644 --- a/stock_putaway_method/__manifest__.py +++ b/stock_putaway_method/__manifest__.py @@ -2,10 +2,10 @@ { 'name': 'Putaway strategy method', 'summary': 'Add the putaway strategy method back, ' - 'removed from the stock module in Odoo 11', - 'version': '11.0.1.0.0', + 'removed from the stock module in Odoo 12', + 'version': '12.0.1.0.0', 'category': 'Inventory', - 'website': 'https://www.camptocamp.com', + 'website': 'https://github.com/OCA/stock-logistics-warehouse', 'author': 'Camptocamp SA, ' 'Odoo Community Association (OCA)', 'license': 'AGPL-3', @@ -16,5 +16,6 @@ 'data': [ 'views/product_strategy_views.xml' ], - 'demo': [] + 'development_status': 'Production/Stable', + 'maintainers': ['asaunier'], } diff --git a/stock_putaway_method/i18n/cs_CZ.po b/stock_putaway_method/i18n/cs_CZ.po index dec245e21..9d3eeb7f9 100644 --- a/stock_putaway_method/i18n/cs_CZ.po +++ b/stock_putaway_method/i18n/cs_CZ.po @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #. module: stock_putaway_method -#: model:ir.model.fields,field_description:stock_putaway_method.field_product_putaway_method +#: model:ir.model.fields,field_description:stock_putaway_method.field_product_putaway__method msgid "Method" msgstr "Metoda" diff --git a/stock_putaway_method/i18n/fr.po b/stock_putaway_method/i18n/fr.po index 7bd7d6f53..9950ee8e6 100644 --- a/stock_putaway_method/i18n/fr.po +++ b/stock_putaway_method/i18n/fr.po @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: stock_putaway_method -#: model:ir.model.fields,field_description:stock_putaway_method.field_product_putaway_method +#: model:ir.model.fields,field_description:stock_putaway_method.field_product_putaway__method msgid "Method" msgstr "Méthode" diff --git a/stock_putaway_method/i18n/stock_putaway_method.pot b/stock_putaway_method/i18n/stock_putaway_method.pot index feae8b84c..810cfdd6d 100644 --- a/stock_putaway_method/i18n/stock_putaway_method.pot +++ b/stock_putaway_method/i18n/stock_putaway_method.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -14,7 +14,7 @@ msgstr "" "Plural-Forms: \n" #. module: stock_putaway_method -#: model:ir.model.fields,field_description:stock_putaway_method.field_product_putaway_method +#: model:ir.model.fields,field_description:stock_putaway_method.field_product_putaway__method msgid "Method" msgstr "" diff --git a/stock_putaway_method/models/product_strategy.py b/stock_putaway_method/models/product_strategy.py index ba2604278..c16b179fe 100644 --- a/stock_putaway_method/models/product_strategy.py +++ b/stock_putaway_method/models/product_strategy.py @@ -1,5 +1,4 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - from odoo import api, fields, models diff --git a/stock_putaway_method/readme/CONTRIBUTORS.rst b/stock_putaway_method/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..010c07023 --- /dev/null +++ b/stock_putaway_method/readme/CONTRIBUTORS.rst @@ -0,0 +1,7 @@ +* Camptocamp + + * Alexandre Saunier + +* Open Source Integrators + + * Maxime Chambreuil diff --git a/stock_putaway_method/readme/DESCRIPTION.rst b/stock_putaway_method/readme/DESCRIPTION.rst new file mode 100644 index 000000000..5853ff4ba --- /dev/null +++ b/stock_putaway_method/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module adds the putaway strategy method back, removed from the stock module in Odoo 12. diff --git a/stock_putaway_method/readme/USAGE.rst b/stock_putaway_method/readme/USAGE.rst new file mode 100644 index 000000000..7fb629644 --- /dev/null +++ b/stock_putaway_method/readme/USAGE.rst @@ -0,0 +1,3 @@ +* Create your own new module to implement new putaway strategies +* Extend the method `_get_putaway_options` to add your new method in the list + of available strategies diff --git a/stock_putaway_method/static/description/index.html b/stock_putaway_method/static/description/index.html new file mode 100644 index 000000000..5990249d3 --- /dev/null +++ b/stock_putaway_method/static/description/index.html @@ -0,0 +1,437 @@ + + + + + + +Putaway strategy method + + + +
+

Putaway strategy method

+ + +

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

+

This module adds the putaway strategy method back, removed from the stock module in Odoo 12.

+

Table of contents

+ +
+

Usage

+
    +
  • Create your own new module to implement new putaway strategies
  • +
  • Extend the method _get_putaway_options to add your new method in the list +of available strategies
  • +
+
+
+

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

+
    +
  • Camptocamp SA
  • +
+
+
+

Contributors

+ +
+
+

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.

+

Current maintainer:

+

asaunier

+

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_putaway_method/views/product_strategy_views.xml b/stock_putaway_method/views/product_strategy_views.xml index 7cf797c68..e4edfbd43 100644 --- a/stock_putaway_method/views/product_strategy_views.xml +++ b/stock_putaway_method/views/product_strategy_views.xml @@ -1,6 +1,5 @@ - - + product.putaway.form.method product.putaway @@ -9,12 +8,10 @@ - - {'invisible': [('method', '!=', 'fixed')]} - {'invisible': [('method', '!=', 'fixed')]} +