diff --git a/mrp_production_putaway_strategy/README.rst b/mrp_production_putaway_strategy/README.rst new file mode 100644 index 000000000..278c88be0 --- /dev/null +++ b/mrp_production_putaway_strategy/README.rst @@ -0,0 +1,105 @@ +=============================== +MRP Production Putaway Strategy +=============================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fmanufacture-lightgray.png?logo=github + :target: https://github.com/OCA/manufacture/tree/13.0/mrp_production_putaway_strategy + :alt: OCA/manufacture +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/manufacture-13-0/manufacture-13-0-mrp_production_putaway_strategy + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/129/13.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to apply putaway strategies to the products resulting from +the manufacturing orders. + +The finished products will be placed in the location designated by the putaway +strategy (if they do not have another destination move), based on the +finished products location that was defined in the manufacturing order. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure a putaway strategy follow the next steps: + +#. Go to 'Inventory / Settings'. Activate the option 'Multi-Step Routes' and + save. +#. Go again to 'Inventory / Settings' and press + 'Set Putaway Strategies on Locations'. Then define a putaway strategy in + the location zone where the finished products are supposed to be placed, + and indicate the specific sub-location/bin where the products should + be placed. + +Usage +===== + +To use this module proceed as follows: + +#. Create a manufacturing order and indicate the product and the finished + products location zone. +#. Confirm the manufacturing order. +#. You will notice that the finished products location has changed to the + putaway location, and the chatter shows a message indicating that the + putaway strategy was applied. + +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 +~~~~~~~~~~~~ + +* Jordi Ballester +* Lois Rilo +* Sudhir Arya + +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/manufacture `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mrp_production_putaway_strategy/__init__.py b/mrp_production_putaway_strategy/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/mrp_production_putaway_strategy/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/mrp_production_putaway_strategy/__manifest__.py b/mrp_production_putaway_strategy/__manifest__.py new file mode 100644 index 000000000..ca8055628 --- /dev/null +++ b/mrp_production_putaway_strategy/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +{ + "name": "MRP Production Putaway Strategy", + "summary": "Applies putaway strategies to manufacturing orders for " + "finished products.", + "version": "13.0.1.0.0", + "author": "Eficent, " "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/manufacture", + "category": "Manufacture", + "depends": ["mrp"], + "license": "AGPL-3", + "installable": True, +} diff --git a/mrp_production_putaway_strategy/i18n/de.po b/mrp_production_putaway_strategy/i18n/de.po new file mode 100644 index 000000000..f12933b9a --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/de.po @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +# Translators: +# Niki Waibel , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:19+0000\n" +"PO-Revision-Date: 2018-12-09 10:43+0000\n" +"Last-Translator: Maria Sparenberg \n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\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.3\n" + +#. module: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, python-format +msgid "" +"Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "" +"Dies ist die angewendete Einlagerungsstrategie für die produzierten " +"Produkte.\n" +"Lagerort für produzierte Produkte: %s." + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +#, fuzzy +#| msgid "Manufacturing Order" +msgid "Production Order" +msgstr "Fertigungsauftrag" diff --git a/mrp_production_putaway_strategy/i18n/es.po b/mrp_production_putaway_strategy/i18n/es.po new file mode 100644 index 000000000..1c39fa2ab --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/es.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:19+0000\n" +"PO-Revision-Date: 2017-08-29 03:19+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\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: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, python-format +msgid "" +"Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "" + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +#, fuzzy +#| msgid "Manufacturing Order" +msgid "Production Order" +msgstr "Órden de fabricación" diff --git a/mrp_production_putaway_strategy/i18n/es_MX.po b/mrp_production_putaway_strategy/i18n/es_MX.po new file mode 100644 index 000000000..ba09b911d --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/es_MX.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +# Translators: +# Juan González , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:19+0000\n" +"PO-Revision-Date: 2017-08-29 03:19+0000\n" +"Last-Translator: Juan González , 2017\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" +"es_MX/)\n" +"Language: es_MX\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: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, python-format +msgid "" +"Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "" + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +#, fuzzy +#| msgid "Manufacturing Order" +msgid "Production Order" +msgstr "Orden de fabricación" diff --git a/mrp_production_putaway_strategy/i18n/fr.po b/mrp_production_putaway_strategy/i18n/fr.po new file mode 100644 index 000000000..c28fed4c9 --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/fr.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +# Translators: +# yterrettaz , 2017 +# Quentin THEURET , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:19+0000\n" +"PO-Revision-Date: 2017-08-29 03:19+0000\n" +"Last-Translator: Quentin THEURET , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\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: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, fuzzy, python-format +msgid "" +"Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "Stratégie de dépôt appliqué à l'emplacement des produits finis %s." + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +#, fuzzy +#| msgid "Manufacturing Order" +msgid "Production Order" +msgstr "Ordre de fabrication" diff --git a/mrp_production_putaway_strategy/i18n/gl.po b/mrp_production_putaway_strategy/i18n/gl.po new file mode 100644 index 000000000..0cd491b24 --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/gl.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +# Translators: +# César Castro Cruz , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:19+0000\n" +"PO-Revision-Date: 2017-08-29 03:19+0000\n" +"Last-Translator: César Castro Cruz , 2017\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"Language: gl\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: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, python-format +msgid "" +"Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "" + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +#, fuzzy +#| msgid "Manufacturing Order" +msgid "Production Order" +msgstr "Orde de fabricación" diff --git a/mrp_production_putaway_strategy/i18n/hr.po b/mrp_production_putaway_strategy/i18n/hr.po new file mode 100644 index 000000000..f710c2a61 --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/hr.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:19+0000\n" +"PO-Revision-Date: 2017-08-29 03:19+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, python-format +msgid "" +"Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "" + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +#, fuzzy +#| msgid "Manufacturing Order" +msgid "Production Order" +msgstr "Proizvodni nalog" diff --git a/mrp_production_putaway_strategy/i18n/it.po b/mrp_production_putaway_strategy/i18n/it.po new file mode 100644 index 000000000..1d6f5c76a --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/it.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:19+0000\n" +"PO-Revision-Date: 2017-08-29 03:19+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\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: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, python-format +msgid "" +"Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "" + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +#, fuzzy +#| msgid "Manufacturing Order" +msgid "Production Order" +msgstr "Ordine di produzione" diff --git a/mrp_production_putaway_strategy/i18n/mrp_production_putaway_strategy.pot b/mrp_production_putaway_strategy/i18n/mrp_production_putaway_strategy.pot new file mode 100644 index 000000000..e6237f195 --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/mrp_production_putaway_strategy.pot @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.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: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, python-format +msgid "Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "" + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +msgid "Production Order" +msgstr "" + diff --git a/mrp_production_putaway_strategy/i18n/pt_BR.po b/mrp_production_putaway_strategy/i18n/pt_BR.po new file mode 100644 index 000000000..7fc11e7e4 --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/pt_BR.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:19+0000\n" +"PO-Revision-Date: 2019-09-09 15:24+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/" +"23907/pt_BR/)\n" +"Language: pt_BR\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.8\n" + +#. module: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, python-format +msgid "" +"Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "" +"Aplicação da estratégia de entrada em depósito em produtos acabados.\n" +"Localização dos produtos acabados: %s." + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +msgid "Production Order" +msgstr "Ordem de Produção" diff --git a/mrp_production_putaway_strategy/i18n/ro.po b/mrp_production_putaway_strategy/i18n/ro.po new file mode 100644 index 000000000..aa29d9dfa --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/ro.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:19+0000\n" +"PO-Revision-Date: 2017-08-29 03:19+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" + +#. module: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, python-format +msgid "" +"Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "" + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +#, fuzzy +#| msgid "Manufacturing Order" +msgid "Production Order" +msgstr "Comandă fabricație" diff --git a/mrp_production_putaway_strategy/i18n/sl.po b/mrp_production_putaway_strategy/i18n/sl.po new file mode 100644 index 000000000..10b738462 --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/sl.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +# Translators: +# Matjaž Mozetič , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:19+0000\n" +"PO-Revision-Date: 2017-08-29 03:19+0000\n" +"Last-Translator: Matjaž Mozetič , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" + +#. module: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, python-format +msgid "" +"Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "" + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +#, fuzzy +#| msgid "Manufacturing Order" +msgid "Production Order" +msgstr "Proizvodni nalog" diff --git a/mrp_production_putaway_strategy/i18n/tr.po b/mrp_production_putaway_strategy/i18n/tr.po new file mode 100644 index 000000000..53f1d9b7f --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/tr.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +# Translators: +# Ozge Altinisik , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:19+0000\n" +"PO-Revision-Date: 2017-08-29 03:19+0000\n" +"Last-Translator: Ozge Altinisik , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\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: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, python-format +msgid "" +"Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "" + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +#, fuzzy +#| msgid "Manufacturing Order" +msgid "Production Order" +msgstr "Üretim emri" diff --git a/mrp_production_putaway_strategy/i18n/vi_VN.po b/mrp_production_putaway_strategy/i18n/vi_VN.po new file mode 100644 index 000000000..add895041 --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/vi_VN.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:19+0000\n" +"PO-Revision-Date: 2017-08-29 03:19+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/" +"teams/23907/vi_VN/)\n" +"Language: vi_VN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, python-format +msgid "" +"Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "" + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +#, fuzzy +#| msgid "Manufacturing Order" +msgid "Production Order" +msgstr "Lệnh sản xuất" diff --git a/mrp_production_putaway_strategy/i18n/zh_CN.po b/mrp_production_putaway_strategy/i18n/zh_CN.po new file mode 100644 index 000000000..00720b161 --- /dev/null +++ b/mrp_production_putaway_strategy/i18n/zh_CN.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_putaway_strategy +# +# Translators: +# Jeffery CHEN , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:19+0000\n" +"PO-Revision-Date: 2017-08-29 03:19+0000\n" +"Last-Translator: Jeffery CHEN , 2017\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" +"zh_CN/)\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: mrp_production_putaway_strategy +#: code:addons/mrp_production_putaway_strategy/models/mrp_production.py:20 +#, python-format +msgid "" +"Applied Putaway strategy to finished products.\n" +"Finished Products Location: %s." +msgstr "" + +#. module: mrp_production_putaway_strategy +#: model:ir.model,name:mrp_production_putaway_strategy.model_mrp_production +#, fuzzy +#| msgid "Manufacturing Order" +msgid "Production Order" +msgstr "制造订单" diff --git a/mrp_production_putaway_strategy/models/__init__.py b/mrp_production_putaway_strategy/models/__init__.py new file mode 100644 index 000000000..a9e5f13e4 --- /dev/null +++ b/mrp_production_putaway_strategy/models/__init__.py @@ -0,0 +1 @@ +from . import mrp_production diff --git a/mrp_production_putaway_strategy/models/mrp_production.py b/mrp_production_putaway_strategy/models/mrp_production.py new file mode 100644 index 000000000..9ac47f417 --- /dev/null +++ b/mrp_production_putaway_strategy/models/mrp_production.py @@ -0,0 +1,24 @@ +# Copyright 2017-18 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo import _, api, models + + +class MrpProduction(models.Model): + _inherit = "mrp.production" + + @api.model + def create(self, vals): + location_dest = self.env["stock.location"].browse(vals.get("location_dest_id")) + product = self.env["product.product"].browse(vals.get("product_id")) + location_id = location_dest._get_putaway_strategy(product) + if location_id: + vals["location_dest_id"] = location_id.id + mo = super(MrpProduction, self).create(vals) + if location_id: + message = _( + "Applied Putaway strategy to finished products.\n" + "Finished Products Location: %s." % mo.location_dest_id.complete_name + ) + mo.message_post(body=message, message_type="comment") + return mo diff --git a/mrp_production_putaway_strategy/readme/CONFIGURE.rst b/mrp_production_putaway_strategy/readme/CONFIGURE.rst new file mode 100644 index 000000000..260411ae1 --- /dev/null +++ b/mrp_production_putaway_strategy/readme/CONFIGURE.rst @@ -0,0 +1,9 @@ +To configure a putaway strategy follow the next steps: + +#. Go to 'Inventory / Settings'. Activate the option 'Multi-Step Routes' and + save. +#. Go again to 'Inventory / Settings' and press + 'Set Putaway Strategies on Locations'. Then define a putaway strategy in + the location zone where the finished products are supposed to be placed, + and indicate the specific sub-location/bin where the products should + be placed. diff --git a/mrp_production_putaway_strategy/readme/CONTRIBUTORS.rst b/mrp_production_putaway_strategy/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..8bfbff100 --- /dev/null +++ b/mrp_production_putaway_strategy/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Jordi Ballester +* Lois Rilo +* Sudhir Arya diff --git a/mrp_production_putaway_strategy/readme/DESCRIPTION.rst b/mrp_production_putaway_strategy/readme/DESCRIPTION.rst new file mode 100644 index 000000000..ba6b10ff5 --- /dev/null +++ b/mrp_production_putaway_strategy/readme/DESCRIPTION.rst @@ -0,0 +1,6 @@ +This module allows to apply putaway strategies to the products resulting from +the manufacturing orders. + +The finished products will be placed in the location designated by the putaway +strategy (if they do not have another destination move), based on the +finished products location that was defined in the manufacturing order. diff --git a/mrp_production_putaway_strategy/readme/USAGE.rst b/mrp_production_putaway_strategy/readme/USAGE.rst new file mode 100644 index 000000000..f89c1f14e --- /dev/null +++ b/mrp_production_putaway_strategy/readme/USAGE.rst @@ -0,0 +1,8 @@ +To use this module proceed as follows: + +#. Create a manufacturing order and indicate the product and the finished + products location zone. +#. Confirm the manufacturing order. +#. You will notice that the finished products location has changed to the + putaway location, and the chatter shows a message indicating that the + putaway strategy was applied. diff --git a/mrp_production_putaway_strategy/static/description/icon.png b/mrp_production_putaway_strategy/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/mrp_production_putaway_strategy/static/description/icon.png differ diff --git a/mrp_production_putaway_strategy/static/description/index.html b/mrp_production_putaway_strategy/static/description/index.html new file mode 100644 index 000000000..8235f157a --- /dev/null +++ b/mrp_production_putaway_strategy/static/description/index.html @@ -0,0 +1,452 @@ + + + + + + +MRP Production Putaway Strategy + + + +
+

MRP Production Putaway Strategy

+ + +

Beta License: AGPL-3 OCA/manufacture Translate me on Weblate Try me on Runbot

+

This module allows to apply putaway strategies to the products resulting from +the manufacturing orders.

+

The finished products will be placed in the location designated by the putaway +strategy (if they do not have another destination move), based on the +finished products location that was defined in the manufacturing order.

+

Table of contents

+ +
+

Configuration

+

To configure a putaway strategy follow the next steps:

+
    +
  1. Go to ‘Inventory / Settings’. Activate the option ‘Multi-Step Routes’ and +save.
  2. +
  3. Go again to ‘Inventory / Settings’ and press +‘Set Putaway Strategies on Locations’. Then define a putaway strategy in +the location zone where the finished products are supposed to be placed, +and indicate the specific sub-location/bin where the products should +be placed.
  4. +
+
+
+

Usage

+

To use this module proceed as follows:

+
    +
  1. Create a manufacturing order and indicate the product and the finished +products location zone.
  2. +
  3. Confirm the manufacturing order.
  4. +
  5. You will notice that the finished products location has changed to the +putaway location, and the chatter shows a message indicating that the +putaway strategy was applied.
  6. +
+
+
+

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

+ +
+
+

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/manufacture project on GitHub.

+

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

+
+
+
+ + diff --git a/mrp_production_putaway_strategy/tests/__init__.py b/mrp_production_putaway_strategy/tests/__init__.py new file mode 100644 index 000000000..fae3edd10 --- /dev/null +++ b/mrp_production_putaway_strategy/tests/__init__.py @@ -0,0 +1 @@ +from . import test_mrp_production diff --git a/mrp_production_putaway_strategy/tests/test_mrp_production.py b/mrp_production_putaway_strategy/tests/test_mrp_production.py new file mode 100644 index 000000000..4dcb9f1ff --- /dev/null +++ b/mrp_production_putaway_strategy/tests/test_mrp_production.py @@ -0,0 +1,77 @@ +# Copyright 2017-18 Eficent Business and IT Consulting Services S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo.tests.common import TransactionCase + + +class MrpProductionCase(TransactionCase): + def setUp(self, *args, **kwargs): + super(MrpProductionCase, self).setUp(*args, **kwargs) + + self.warehouse = self.env["stock.warehouse"].create( + { + "name": "X Warehouse", + "code": "X WH", + "reception_steps": "one_step", + "delivery_steps": "ship_only", + } + ) + + self.category = self.env["product.category"].create({"name": "Test"}) + + self.loc_stock = self.warehouse.lot_stock_id + self.bin_loc_stock = self.env["stock.location"].create( + {"name": "Bin 1", "location_id": self.loc_stock.id, "usage": "internal"} + ) + + self.product1 = self.env.ref("mrp.product_product_computer_desk") + self.product1.categ_id = self.category + self.bom1 = self.env.ref("mrp.mrp_bom_desk") + + self.putaway_strategy = self.env["stock.putaway.rule"].create( + { + "product_id": self.product1.id, + "location_in_id": self.loc_stock.id, + "location_out_id": self.bin_loc_stock.id, + } + ) + self.loc_stock.putaway_strategy_id = self.putaway_strategy + + def _create_mo( + self, + product=False, + bom=False, + src_loc=False, + dest_loc=False, + qty=10.0, + uom=False, + ): + if not product: + product = self.product1 + uom = product.uom_id or uom + if not bom: + bom = self.bom1 + if not src_loc: + src_loc = self.loc_stock + if not dest_loc: + dest_loc = self.loc_stock + res = { + "product_id": product.id, + "bom_id": bom.id, + "location_src_id": src_loc.id, + "location_dest_id": dest_loc.id, + "product_qty": qty, + "product_uom_id": uom.id, + } + return self.env["mrp.production"].create(res) + + def test_putaway_strategy_01(self): + """Tests if the putaway strategy applies to a Manufacturing Order.""" + # Create MO + mo = self._create_mo() + for finished in mo.move_finished_ids: + self.assertEqual( + finished.location_dest_id, + self.bin_loc_stock, + "Putaway strategy hasn't been applied.", + ) diff --git a/setup/mrp_production_putaway_strategy/odoo/addons/mrp_production_putaway_strategy b/setup/mrp_production_putaway_strategy/odoo/addons/mrp_production_putaway_strategy new file mode 120000 index 000000000..61491de8d --- /dev/null +++ b/setup/mrp_production_putaway_strategy/odoo/addons/mrp_production_putaway_strategy @@ -0,0 +1 @@ +../../../../mrp_production_putaway_strategy \ No newline at end of file diff --git a/setup/mrp_production_putaway_strategy/setup.py b/setup/mrp_production_putaway_strategy/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/mrp_production_putaway_strategy/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)