From 5cf543c7911fc0b0d90a7ea2e3679fffd4a056c3 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Wed, 14 Mar 2018 23:09:34 +0100 Subject: [PATCH] Migrate stock_mts_mto_rule to version 11 --- stock_mts_mto_rule/README.rst | 18 ++- stock_mts_mto_rule/__manifest__.py | 3 +- stock_mts_mto_rule/i18n/cs_CZ.po | 49 +++--- stock_mts_mto_rule/i18n/de.po | 59 ++++---- stock_mts_mto_rule/i18n/es.po | 63 ++++---- stock_mts_mto_rule/i18n/es_MX.po | 49 +++--- stock_mts_mto_rule/i18n/fr.po | 58 +++---- stock_mts_mto_rule/i18n/fr_FR.po | 46 +++--- stock_mts_mto_rule/i18n/hr.po | 62 ++++---- stock_mts_mto_rule/i18n/it.po | 46 +++--- stock_mts_mto_rule/i18n/nl.po | 43 +++--- stock_mts_mto_rule/i18n/nl_NL.po | 51 +++---- stock_mts_mto_rule/i18n/pt_BR.po | 49 +++--- stock_mts_mto_rule/i18n/pt_PT.po | 49 +++--- stock_mts_mto_rule/i18n/ro.po | 49 +++--- stock_mts_mto_rule/i18n/sk.po | 46 +++--- stock_mts_mto_rule/i18n/sl.po | 62 ++++---- .../i18n/stock_mts_mto_rule.pot | 91 +++++++++++ stock_mts_mto_rule/i18n/tr_TR.po | 49 +++--- stock_mts_mto_rule/i18n/vi_VN.po | 49 +++--- stock_mts_mto_rule/i18n/zh_CN.po | 49 +++--- stock_mts_mto_rule/model/__init__.py | 7 +- stock_mts_mto_rule/model/procurement.py | 103 ------------- stock_mts_mto_rule/model/procurement_rule.py | 70 +++++++++ stock_mts_mto_rule/model/rule.py | 19 --- .../{warehouse.py => stock_warehouse.py} | 45 ++---- .../tests/test_mto_mts_route.py | 141 +++++++++--------- stock_mts_mto_rule/view/pull_rule.xml | 2 +- 28 files changed, 709 insertions(+), 718 deletions(-) create mode 100644 stock_mts_mto_rule/i18n/stock_mts_mto_rule.pot delete mode 100644 stock_mts_mto_rule/model/procurement.py create mode 100644 stock_mts_mto_rule/model/procurement_rule.py delete mode 100644 stock_mts_mto_rule/model/rule.py rename stock_mts_mto_rule/model/{warehouse.py => stock_warehouse.py} (75%) diff --git a/stock_mts_mto_rule/README.rst b/stock_mts_mto_rule/README.rst index 7ff843b93..6835c310c 100644 --- a/stock_mts_mto_rule/README.rst +++ b/stock_mts_mto_rule/README.rst @@ -1,5 +1,5 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: https://www.gnu.org/licenses/agpl :alt: License: AGPL-3 ================== @@ -34,6 +34,11 @@ A sale Order is made for 3 products A. After validation, a purchase order with 2 products will be created. +Configuration +============= + +You have to select 'Use MTO+MTS rules' on the company's warehouse form. + Usage ===== @@ -42,12 +47,7 @@ You should not select both the mts+mto route and the mto route. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/153/10.0 - -Configuration -============= - -You have to select 'Use MTO+MTS rules' on the company's warehouse form. + :target: https://runbot.odoo-community.org/runbot/153/11.0 Known issues ============ @@ -74,6 +74,8 @@ Contributors * Florian da Costa +Do not contact contributors directly about support or help with technical issues. + Maintainer ---------- diff --git a/stock_mts_mto_rule/__manifest__.py b/stock_mts_mto_rule/__manifest__.py index ecccd1339..13ddfe770 100644 --- a/stock_mts_mto_rule/__manifest__.py +++ b/stock_mts_mto_rule/__manifest__.py @@ -1,8 +1,7 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). {'name': 'Stock MTS+MTO Rule', - 'version': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'author': 'Akretion,Odoo Community Association (OCA)', 'website': 'http://www.akretion.com', 'license': 'AGPL-3', diff --git a/stock_mts_mto_rule/i18n/cs_CZ.po b/stock_mts_mto_rule/i18n/cs_CZ.po index 4322ba4f3..b30b6e245 100644 --- a/stock_mts_mto_rule/i18n/cs_CZ.po +++ b/stock_mts_mto_rule/i18n/cs_CZ.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # Lukáš Spurný , 2018 msgid "" @@ -11,43 +11,46 @@ msgstr "" "POT-Creation-Date: 2018-02-27 11:37+0000\n" "PO-Revision-Date: 2018-02-27 11:37+0000\n" "Last-Translator: Lukáš Spurný , 2018\n" -"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/teams/23907/cs_CZ/)\n" +"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/" +"teams/23907/cs_CZ/)\n" +"Language: cs_CZ\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: cs_CZ\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" +#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "" +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " +"taken from stocks" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " -"taken from stocks" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." msgstr "" #. module: stock_mts_mto_rule @@ -66,7 +69,7 @@ msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -77,25 +80,16 @@ msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Zakázka" - #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "Pravidlo zadávání zakázek" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -105,3 +99,6 @@ msgstr "" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "" + +#~ msgid "Procurement" +#~ msgstr "Zakázka" diff --git a/stock_mts_mto_rule/i18n/de.po b/stock_mts_mto_rule/i18n/de.po index 2e2811c7d..ed76ed6e4 100644 --- a/stock_mts_mto_rule/i18n/de.po +++ b/stock_mts_mto_rule/i18n/de.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,47 +12,49 @@ msgstr "" "PO-Revision-Date: 2017-11-30 03:53+0000\n" "Last-Translator: OCA Transbot , 2017\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" -"Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "Kann MTO-Regel zum Lager nicht finden" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "Kann MTS-Regel zum Lager nicht finden" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "Kann keine allg. MTO- oder MTS-Route finden" -#. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" -msgstr "Wähle aus MTO und MTS" - #. module: stock_mts_mto_rule #: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " "taken from stocks" msgstr "" "Wird diese neue Route in der Produktdetailsicht gewählt, wird eine " "Beschaffung nur dann bewirkt, wenn der Planbestand unter 0 fällt, " "anderenfalls wird das Produkt aus dem Bestand genommen." +#. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format +msgid "" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." +msgstr "" + #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id msgid "MTO Rule" @@ -69,7 +71,7 @@ msgid "MTS Rule" msgstr "MTS-Regel" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "MTS+MTO" @@ -80,25 +82,16 @@ msgid "Make To Order + Make To Stock" msgstr "MTO Auftragsfertigung + MTS Lagerfertigung" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" -msgstr "MTO+MTS-Beschaffung" - -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Beschaffung" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" +msgstr "" #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "Beschaffungsregel" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "Beschaffungen" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -108,3 +101,15 @@ msgstr "Verwende MTO+MTS-Regeln" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "Lager" + +#~ msgid "Choose between MTS and MTO" +#~ msgstr "Wähle aus MTO und MTS" + +#~ msgid "Mto+Mts Procurement" +#~ msgstr "MTO+MTS-Beschaffung" + +#~ msgid "Procurement" +#~ msgstr "Beschaffung" + +#~ msgid "Procurements" +#~ msgstr "Beschaffungen" diff --git a/stock_mts_mto_rule/i18n/es.po b/stock_mts_mto_rule/i18n/es.po index d43b71ff1..2737734a5 100644 --- a/stock_mts_mto_rule/i18n/es.po +++ b/stock_mts_mto_rule/i18n/es.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2017 # Pedro M. Baeza , 2017 @@ -13,48 +13,50 @@ msgstr "" "PO-Revision-Date: 2017-11-30 03:53+0000\n" "Last-Translator: Pedro M. Baeza , 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" -"Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "No se puede encontrar un regla \"bajo pedido\" en el almacén" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "No se puede encontrar una regla \"bajo existencias\" en el almacén" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" "No se puede encontrar una regla genérica MTS+MTO - \"bajo existencias+bajo " "pedido\"." -#. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" -msgstr "Escoja entre \"bajo existencias\" o \"bajo pedido\"" - #. module: stock_mts_mto_rule #: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " "taken from stocks" msgstr "" "Si se selecciona esta nueva ruta en la vista formulario de producto, se " -"creará un pedido de compra sólo si la cantidad virtual es menor de 0. Si no," -" se cogerá el producto desde existencias." +"creará un pedido de compra sólo si la cantidad virtual es menor de 0. Si no, " +"se cogerá el producto desde existencias." + +#. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format +msgid "" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." +msgstr "" #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id @@ -72,7 +74,7 @@ msgid "MTS Rule" msgstr "Regla \"bajo existencias\"" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "MTS+MTO" @@ -83,25 +85,16 @@ msgid "Make To Order + Make To Stock" msgstr "Bajo pedido + bajo existencias" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" -msgstr "Abastecimiento MTO+MTS" - -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Abastecimiento" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" +msgstr "" #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "Regla de abastecimiento" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "Abastecimientos" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -111,3 +104,15 @@ msgstr "Usar reglas MTO+MTS" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "Almacén" + +#~ msgid "Choose between MTS and MTO" +#~ msgstr "Escoja entre \"bajo existencias\" o \"bajo pedido\"" + +#~ msgid "Mto+Mts Procurement" +#~ msgstr "Abastecimiento MTO+MTS" + +#~ msgid "Procurement" +#~ msgstr "Abastecimiento" + +#~ msgid "Procurements" +#~ msgstr "Abastecimientos" diff --git a/stock_mts_mto_rule/i18n/es_MX.po b/stock_mts_mto_rule/i18n/es_MX.po index bcc50702b..6138e4ee5 100644 --- a/stock_mts_mto_rule/i18n/es_MX.po +++ b/stock_mts_mto_rule/i18n/es_MX.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,43 +11,46 @@ msgstr "" "POT-Creation-Date: 2017-07-28 02:58+0000\n" "PO-Revision-Date: 2017-07-28 02:58+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/es_MX/)\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" -"Language: es_MX\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" +#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "" +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " +"taken from stocks" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " -"taken from stocks" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." msgstr "" #. module: stock_mts_mto_rule @@ -66,7 +69,7 @@ msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -77,25 +80,16 @@ msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Contratación" - #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -105,3 +99,6 @@ msgstr "" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "" + +#~ msgid "Procurement" +#~ msgstr "Contratación" diff --git a/stock_mts_mto_rule/i18n/fr.po b/stock_mts_mto_rule/i18n/fr.po index ba90b96a4..a6bede845 100644 --- a/stock_mts_mto_rule/i18n/fr.po +++ b/stock_mts_mto_rule/i18n/fr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2017 # Quentin THEURET , 2018 @@ -13,14 +13,14 @@ msgstr "" "PO-Revision-Date: 2018-02-27 11:37+0000\n" "Last-Translator: Quentin THEURET , 2018\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" -"Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" @@ -28,7 +28,7 @@ msgstr "" "l'entrepôt" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" @@ -36,30 +36,30 @@ msgstr "" "l'entrepôt" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "Aucune règle par défaut MTS+MTO configurée. " -#. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" -msgstr "" -"Choisir entre MTS(Make To Stock: Produit géré en stock) et MTO(Make To " -"Order: Produit fabriqué à la commande). " - #. module: stock_mts_mto_rule #: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " "taken from stocks" msgstr "" "Si cette nouvelle route est sélectionnée sur la vue formulaire du produit, " "une commande d'achat sera créée seulement si le stock virtuel est inférieur " "à 0, sinon, le produit sera pris en stock." +#. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format +msgid "" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." +msgstr "" + #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id msgid "MTO Rule" @@ -76,7 +76,7 @@ msgid "MTS Rule" msgstr "MTS: Produit stocké" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -87,25 +87,16 @@ msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Procurement" - #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "Règle d'approvisionnement" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "Approvisionnements" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -115,3 +106,14 @@ msgstr "" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "Entrepôt" + +#~ msgid "Choose between MTS and MTO" +#~ msgstr "" +#~ "Choisir entre MTS(Make To Stock: Produit géré en stock) et MTO(Make To " +#~ "Order: Produit fabriqué à la commande). " + +#~ msgid "Procurement" +#~ msgstr "Procurement" + +#~ msgid "Procurements" +#~ msgstr "Approvisionnements" diff --git a/stock_mts_mto_rule/i18n/fr_FR.po b/stock_mts_mto_rule/i18n/fr_FR.po index ae847b67a..7391ed80c 100644 --- a/stock_mts_mto_rule/i18n/fr_FR.po +++ b/stock_mts_mto_rule/i18n/fr_FR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,43 +11,46 @@ msgstr "" "POT-Creation-Date: 2017-07-28 02:58+0000\n" "PO-Revision-Date: 2017-07-28 02:58+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: French (France) (https://www.transifex.com/oca/teams/23907/fr_FR/)\n" +"Language-Team: French (France) (https://www.transifex.com/oca/teams/23907/" +"fr_FR/)\n" +"Language: fr_FR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fr_FR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" +#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "" +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " +"taken from stocks" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " -"taken from stocks" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." msgstr "" #. module: stock_mts_mto_rule @@ -66,7 +69,7 @@ msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -77,13 +80,9 @@ msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" -msgstr "" - -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" #. module: stock_mts_mto_rule @@ -91,11 +90,6 @@ msgstr "" msgid "Procurement Rule" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" diff --git a/stock_mts_mto_rule/i18n/hr.po b/stock_mts_mto_rule/i18n/hr.po index 9a92b84c2..b96b37f32 100644 --- a/stock_mts_mto_rule/i18n/hr.po +++ b/stock_mts_mto_rule/i18n/hr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2017 # Bole , 2018 @@ -13,44 +13,47 @@ msgstr "" "PO-Revision-Date: 2018-02-27 11:37+0000\n" "Last-Translator: Bole , 2018\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" -"Language: hr\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" +"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: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "Nemogu naći MTO pravilo na skladištu" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "Nemogu naći MTO pravilo na skladištu" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "Nemogu naći nijedno generičko MTO+MTS pravilo." -#. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" -msgstr "Izaberite između MTO i MTS pravila" - #. module: stock_mts_mto_rule #: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " "taken from stocks" msgstr "" +#. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format +msgid "" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." +msgstr "" + #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id msgid "MTO Rule" @@ -67,7 +70,7 @@ msgid "MTS Rule" msgstr "MTS pravilo" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "MTS+MTO" @@ -78,25 +81,16 @@ msgid "Make To Order + Make To Stock" msgstr "Make To Order + Make To Stock" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" -msgstr "Mto+Mts Nabava" - -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Nabava" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" +msgstr "" #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "Pavilo nabave" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "Nabave" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -106,3 +100,15 @@ msgstr "Koristi MTO+MTS pravila" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "Skladište" + +#~ msgid "Choose between MTS and MTO" +#~ msgstr "Izaberite između MTO i MTS pravila" + +#~ msgid "Mto+Mts Procurement" +#~ msgstr "Mto+Mts Nabava" + +#~ msgid "Procurement" +#~ msgstr "Nabava" + +#~ msgid "Procurements" +#~ msgstr "Nabave" diff --git a/stock_mts_mto_rule/i18n/it.po b/stock_mts_mto_rule/i18n/it.po index ef2e2d11d..cc1b56b6e 100644 --- a/stock_mts_mto_rule/i18n/it.po +++ b/stock_mts_mto_rule/i18n/it.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,42 +12,44 @@ msgstr "" "PO-Revision-Date: 2017-07-28 02:58+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" -"Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" +#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "" +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " +"taken from stocks" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " -"taken from stocks" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." msgstr "" #. module: stock_mts_mto_rule @@ -66,7 +68,7 @@ msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -77,25 +79,16 @@ msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Approvvigionamento" - #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "Regola d'Approvvigionamento" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -105,3 +98,6 @@ msgstr "" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "Magazzino" + +#~ msgid "Procurement" +#~ msgstr "Approvvigionamento" diff --git a/stock_mts_mto_rule/i18n/nl.po b/stock_mts_mto_rule/i18n/nl.po index deeecd85d..2226527b5 100644 --- a/stock_mts_mto_rule/i18n/nl.po +++ b/stock_mts_mto_rule/i18n/nl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,42 +12,44 @@ msgstr "" "PO-Revision-Date: 2017-07-28 02:58+0000\n" "Last-Translator: OCA Transbot , 2017\n" "Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: nl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" +#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "" +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " +"taken from stocks" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " -"taken from stocks" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." msgstr "" #. module: stock_mts_mto_rule @@ -66,7 +68,7 @@ msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -77,13 +79,9 @@ msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" -msgstr "" - -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" #. module: stock_mts_mto_rule @@ -91,11 +89,6 @@ msgstr "" msgid "Procurement Rule" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" diff --git a/stock_mts_mto_rule/i18n/nl_NL.po b/stock_mts_mto_rule/i18n/nl_NL.po index b55e05fcf..1965eca66 100644 --- a/stock_mts_mto_rule/i18n/nl_NL.po +++ b/stock_mts_mto_rule/i18n/nl_NL.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # Peter Hageman , 2017 msgid "" @@ -11,45 +11,48 @@ msgstr "" "POT-Creation-Date: 2017-06-23 00:57+0000\n" "PO-Revision-Date: 2017-06-23 00:57+0000\n" "Last-Translator: Peter Hageman , 2017\n" -"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: nl_NL\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" -#. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" -msgstr "Kies tussen MTS en MTO" - #. module: stock_mts_mto_rule #: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " "taken from stocks" msgstr "" +#. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format +msgid "" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." +msgstr "" + #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id msgid "MTO Rule" @@ -66,7 +69,7 @@ msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -77,13 +80,9 @@ msgid "Make To Order + Make To Stock" msgstr "Op Order + Op Voorrad" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" -msgstr "" - -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" #. module: stock_mts_mto_rule @@ -91,11 +90,6 @@ msgstr "" msgid "Procurement Rule" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -105,3 +99,6 @@ msgstr "" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "Magazijn" + +#~ msgid "Choose between MTS and MTO" +#~ msgstr "Kies tussen MTS en MTO" diff --git a/stock_mts_mto_rule/i18n/pt_BR.po b/stock_mts_mto_rule/i18n/pt_BR.po index 67e217e1d..0a3ff66b6 100644 --- a/stock_mts_mto_rule/i18n/pt_BR.po +++ b/stock_mts_mto_rule/i18n/pt_BR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,43 +11,46 @@ msgstr "" "POT-Creation-Date: 2017-07-28 02:58+0000\n" "PO-Revision-Date: 2017-07-28 02:58+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\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" -"Language: pt_BR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" +#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "" +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " +"taken from stocks" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " -"taken from stocks" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." msgstr "" #. module: stock_mts_mto_rule @@ -66,7 +69,7 @@ msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -77,25 +80,16 @@ msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Aprovisionamento" - #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -105,3 +99,6 @@ msgstr "" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "Armazém" + +#~ msgid "Procurement" +#~ msgstr "Aprovisionamento" diff --git a/stock_mts_mto_rule/i18n/pt_PT.po b/stock_mts_mto_rule/i18n/pt_PT.po index 7261608fb..fc38fce53 100644 --- a/stock_mts_mto_rule/i18n/pt_PT.po +++ b/stock_mts_mto_rule/i18n/pt_PT.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2018 msgid "" @@ -11,43 +11,46 @@ msgstr "" "POT-Creation-Date: 2018-02-27 11:37+0000\n" "PO-Revision-Date: 2018-02-27 11:37+0000\n" "Last-Translator: OCA Transbot , 2018\n" -"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/teams/23907/pt_PT/)\n" +"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/" +"teams/23907/pt_PT/)\n" +"Language: pt_PT\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: pt_PT\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" +#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "" +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " +"taken from stocks" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " -"taken from stocks" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." msgstr "" #. module: stock_mts_mto_rule @@ -66,7 +69,7 @@ msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -77,25 +80,16 @@ msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Aquisições" - #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -105,3 +99,6 @@ msgstr "" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "" + +#~ msgid "Procurement" +#~ msgstr "Aquisições" diff --git a/stock_mts_mto_rule/i18n/ro.po b/stock_mts_mto_rule/i18n/ro.po index 8ad1b83e4..3005a1938 100644 --- a/stock_mts_mto_rule/i18n/ro.po +++ b/stock_mts_mto_rule/i18n/ro.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -12,42 +12,45 @@ msgstr "" "PO-Revision-Date: 2017-07-28 02:58+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" -"Language: ro\n" -"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" +#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "" +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " +"taken from stocks" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " -"taken from stocks" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." msgstr "" #. module: stock_mts_mto_rule @@ -66,7 +69,7 @@ msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -77,25 +80,16 @@ msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Aprovizionare" - #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -105,3 +99,6 @@ msgstr "" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "" + +#~ msgid "Procurement" +#~ msgstr "Aprovizionare" diff --git a/stock_mts_mto_rule/i18n/sk.po b/stock_mts_mto_rule/i18n/sk.po index 14b5447f5..6f437a897 100644 --- a/stock_mts_mto_rule/i18n/sk.po +++ b/stock_mts_mto_rule/i18n/sk.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2018 msgid "" @@ -12,42 +12,44 @@ msgstr "" "PO-Revision-Date: 2018-02-27 11:37+0000\n" "Last-Translator: OCA Transbot , 2018\n" "Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/sk/)\n" +"Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: sk\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" +#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "" +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " +"taken from stocks" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " -"taken from stocks" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." msgstr "" #. module: stock_mts_mto_rule @@ -66,7 +68,7 @@ msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -77,25 +79,16 @@ msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Obstarávanie" - #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -105,3 +98,6 @@ msgstr "" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "" + +#~ msgid "Procurement" +#~ msgstr "Obstarávanie" diff --git a/stock_mts_mto_rule/i18n/sl.po b/stock_mts_mto_rule/i18n/sl.po index 36d592fe6..80ea7936a 100644 --- a/stock_mts_mto_rule/i18n/sl.po +++ b/stock_mts_mto_rule/i18n/sl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2016 msgid "" @@ -12,47 +12,50 @@ msgstr "" "PO-Revision-Date: 2017-03-31 08:35+0000\n" "Last-Translator: OCA Transbot , 2016\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" -"Language: sl\n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "Za skladišče ni pravila 'po naročilu'" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "Za skladišče ni pravila 'na zalogo'" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "Ni generične proge 'na zalogo' + 'po naročilu'" -#. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" -msgstr "Izbira med 'Na zalogo' in 'Po naročilu'" - #. module: stock_mts_mto_rule #: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " "taken from stocks" msgstr "" "Če je na prikazu obrazca proizvoda izbrana ta proga, se nabavni nalog " "ustvari le, če je navidezna zaloga manj od 0. V nasprotnem primeru se " "proizvod vzame iz zaloge." +#. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format +msgid "" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." +msgstr "" + #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id msgid "MTO Rule" @@ -69,7 +72,7 @@ msgid "MTS Rule" msgstr "Pravilo 'Na zalogo'" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "Na zalogo + Po naročilu" @@ -80,25 +83,16 @@ msgid "Make To Order + Make To Stock" msgstr "Naredi po naročilu + Naredi na zalogo" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" -msgstr "Oskrbovanja 'po naročilu'+'na zalogo'" - -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Oskrbovanje" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" +msgstr "" #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "Oskrbovalno pravilo" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "Oskrbovanja" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -108,3 +102,15 @@ msgstr "Uporabi pravila Po naročilu + Na zalogo" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "Skladišče" + +#~ msgid "Choose between MTS and MTO" +#~ msgstr "Izbira med 'Na zalogo' in 'Po naročilu'" + +#~ msgid "Mto+Mts Procurement" +#~ msgstr "Oskrbovanja 'po naročilu'+'na zalogo'" + +#~ msgid "Procurement" +#~ msgstr "Oskrbovanje" + +#~ msgid "Procurements" +#~ msgstr "Oskrbovanja" diff --git a/stock_mts_mto_rule/i18n/stock_mts_mto_rule.pot b/stock_mts_mto_rule/i18n/stock_mts_mto_rule.pot new file mode 100644 index 000000000..d669ae7b1 --- /dev/null +++ b/stock_mts_mto_rule/i18n/stock_mts_mto_rule.pot @@ -0,0 +1,91 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_mts_mto_rule +# +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_mts_mto_rule +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 +#, python-format +msgid "Can't find MTO Rule on the warehouse" +msgstr "" + +#. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 +#, python-format +msgid "Can't find MTS Rule on the warehouse" +msgstr "" + +#. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 +#, python-format +msgid "Can't find any generic MTS+MTO route." +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "If this new route is selected on product form view, a purchase order will be created only if the virtual stock is less than 0 else, the product will be taken from stocks" +msgstr "" + +#. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format +msgid "Inconsistency between the source locations of the mts and mto rules linked to the procurement rule: %s! It should be the same." +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +msgid "MTO Rule" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mts_mto_rule_id +msgid "MTO+MTS rule" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mts_rule_id +msgid "MTS Rule" +msgstr "" + +#. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#, python-format +msgid "MTS+MTO" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +msgid "Make To Order + Make To Stock" +msgstr "" + +#. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule +msgid "Procurement Rule" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "Use MTO+MTS rules" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse +msgid "Warehouse" +msgstr "" + diff --git a/stock_mts_mto_rule/i18n/tr_TR.po b/stock_mts_mto_rule/i18n/tr_TR.po index 876b122b5..765725614 100644 --- a/stock_mts_mto_rule/i18n/tr_TR.po +++ b/stock_mts_mto_rule/i18n/tr_TR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2018 msgid "" @@ -11,43 +11,46 @@ msgstr "" "POT-Creation-Date: 2018-02-27 11:37+0000\n" "PO-Revision-Date: 2018-02-27 11:37+0000\n" "Last-Translator: OCA Transbot , 2018\n" -"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/tr_TR/)\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" +"tr_TR/)\n" +"Language: tr_TR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: tr_TR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" +#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "" +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " +"taken from stocks" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " -"taken from stocks" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." msgstr "" #. module: stock_mts_mto_rule @@ -66,7 +69,7 @@ msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -77,25 +80,16 @@ msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Satın alma" - #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -105,3 +99,6 @@ msgstr "" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "" + +#~ msgid "Procurement" +#~ msgstr "Satın alma" diff --git a/stock_mts_mto_rule/i18n/vi_VN.po b/stock_mts_mto_rule/i18n/vi_VN.po index a932c78e7..74b2bbd2e 100644 --- a/stock_mts_mto_rule/i18n/vi_VN.po +++ b/stock_mts_mto_rule/i18n/vi_VN.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,43 +11,46 @@ msgstr "" "POT-Creation-Date: 2017-07-28 02:58+0000\n" "PO-Revision-Date: 2017-07-28 02:58+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/teams/23907/vi_VN/)\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" -"Language: vi_VN\n" "Plural-Forms: nplurals=1; plural=0;\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" +#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "" +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " +"taken from stocks" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " -"taken from stocks" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." msgstr "" #. module: stock_mts_mto_rule @@ -66,7 +69,7 @@ msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -77,25 +80,16 @@ msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "Mua sắm / Cung ứng" - #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -105,3 +99,6 @@ msgstr "" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "" + +#~ msgid "Procurement" +#~ msgstr "Mua sắm / Cung ứng" diff --git a/stock_mts_mto_rule/i18n/zh_CN.po b/stock_mts_mto_rule/i18n/zh_CN.po index 1c1f64b4e..af7ff4c0d 100644 --- a/stock_mts_mto_rule/i18n/zh_CN.po +++ b/stock_mts_mto_rule/i18n/zh_CN.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * stock_mts_mto_rule -# +# # Translators: # OCA Transbot , 2017 msgid "" @@ -11,43 +11,46 @@ msgstr "" "POT-Creation-Date: 2017-07-28 02:58+0000\n" "PO-Revision-Date: 2017-07-28 02:58+0000\n" "Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/zh_CN/)\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" -"Language: zh_CN\n" "Plural-Forms: nplurals=1; plural=0;\n" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:36 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #, python-format msgid "Can't find MTO Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:43 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #, python-format msgid "Can't find MTS Rule on the warehouse" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:32 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #, python-format msgid "Can't find any generic MTS+MTO route." msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/rule.py:18 -#, python-format -msgid "Choose between MTS and MTO" +#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +msgid "" +"If this new route is selected on product form view, a purchase order will be " +"created only if the virtual stock is less than 0 else, the product will be " +"taken from stocks" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#, python-format msgid "" -"If this new route is selected on product form view, a purchase order will be" -" created only if the virtual stock is less than 0 else, the product will be " -"taken from stocks" +"Inconsistency between the source locations of the mts and mto rules linked " +"to the procurement rule: %s! It should be the same." msgstr "" #. module: stock_mts_mto_rule @@ -66,7 +69,7 @@ msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/warehouse.py:143 +#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 #, python-format msgid "MTS+MTO" msgstr "" @@ -77,25 +80,16 @@ msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_id -msgid "Mto+Mts Procurement" +#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#, python-format +msgid "No MTS or MTO rule configured on procurement rule: %s!" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model,name:stock_mts_mto_rule.model_procurement_order -msgid "Procurement" -msgstr "补货" - #. module: stock_mts_mto_rule #: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule msgid "Procurement Rule" msgstr "" -#. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_order_mts_mto_procurement_ids -msgid "Procurements" -msgstr "" - #. module: stock_mts_mto_rule #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management msgid "Use MTO+MTS rules" @@ -105,3 +99,6 @@ msgstr "" #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse msgid "Warehouse" msgstr "" + +#~ msgid "Procurement" +#~ msgstr "补货" diff --git a/stock_mts_mto_rule/model/__init__.py b/stock_mts_mto_rule/model/__init__.py index cb1cbd4ab..727b200ed 100644 --- a/stock_mts_mto_rule/model/__init__.py +++ b/stock_mts_mto_rule/model/__init__.py @@ -1,5 +1,2 @@ -# -*- coding: utf-8 -*- - -from . import rule -from . import warehouse -from . import procurement +from . import procurement_rule +from . import stock_warehouse diff --git a/stock_mts_mto_rule/model/procurement.py b/stock_mts_mto_rule/model/procurement.py deleted file mode 100644 index 24de0babc..000000000 --- a/stock_mts_mto_rule/model/procurement.py +++ /dev/null @@ -1,103 +0,0 @@ -# -*- coding: utf-8 -*- -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import api, fields, models - - -class ProcurementOrder(models.Model): - _inherit = 'procurement.order' - - mts_mto_procurement_id = fields.Many2one( - 'procurement.order', - string="Mto+Mts Procurement", - copy=False) - mts_mto_procurement_ids = fields.One2many( - 'procurement.order', - 'mts_mto_procurement_id', - string="Procurements") - - @api.multi - def get_mto_qty_to_order(self): - self.ensure_one() - stock_location = self.warehouse_id.lot_stock_id.id - proc_warehouse = self.with_context(location=stock_location) - virtual_available = proc_warehouse.product_id.virtual_available - qty_available = self.product_id.uom_id._compute_quantity( - virtual_available, self.product_uom) - - if qty_available > 0: - if qty_available >= self.product_qty: - return 0.0 - else: - return self.product_qty - qty_available - return self.product_qty - - @api.multi - def _get_mts_mto_procurement(self, rule, qty): - self.ensure_one() - origin = (self.group_id and (self.group_id.name + ":") or "") + \ - (self.rule_id and self.rule_id.name or self.origin or "/") - return { - 'name': self.name, - 'origin': origin, - 'product_qty': qty, - 'rule_id': rule.id, - 'mts_mto_procurement_id': self.id, - } - - @api.multi - def _check(self): - self.ensure_one() - if self.rule_id and \ - self.rule_id.action == 'split_procurement': - cancel_proc_list = [x.state == 'cancel' - for x in self.mts_mto_procurement_ids] - done_cancel_test_list = [ - x.state in ('done', 'cancel') - for x in self.mts_mto_procurement_ids] - if all(cancel_proc_list): - self.write({'state': 'cancel'}) - elif all(done_cancel_test_list): - return True - return super(ProcurementOrder, self)._check() - - @api.multi - def check(self, autocommit=False): - res = super(ProcurementOrder, self).check(autocommit=autocommit) - for procurement in self: - if procurement.mts_mto_procurement_id: - procurement.mts_mto_procurement_id.check( - autocommit=autocommit) - return res - - @api.multi - def _run(self): - self.ensure_one() - if self.rule_id and self.rule_id.action == 'split_procurement': - if self.mts_mto_procurement_ids: - return super(ProcurementOrder, self)._run() - needed_qty = self.get_mto_qty_to_order() - rule = self.rule_id - if needed_qty == 0.0: - mts_vals = self._get_mts_mto_procurement( - rule.mts_rule_id, self.product_qty) - mts_proc = self.copy(mts_vals) - mts_proc.run() - elif needed_qty == self.product_qty: - mto_vals = self._get_mts_mto_procurement( - rule.mto_rule_id, self.product_qty) - mto_proc = self.copy(mto_vals) - mto_proc.run() - else: - mts_qty = self.product_qty - needed_qty - mts_vals = self._get_mts_mto_procurement( - rule.mts_rule_id, mts_qty) - mts_proc = self.copy(mts_vals) - mts_proc.run() - - mto_vals = self._get_mts_mto_procurement( - rule.mto_rule_id, needed_qty) - mto_proc = self.copy(mto_vals) - mto_proc.run() - - return super(ProcurementOrder, self)._run() diff --git a/stock_mts_mto_rule/model/procurement_rule.py b/stock_mts_mto_rule/model/procurement_rule.py new file mode 100644 index 000000000..d4752e420 --- /dev/null +++ b/stock_mts_mto_rule/model/procurement_rule.py @@ -0,0 +1,70 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models, api, fields, _ +from odoo.exceptions import UserError + + +class ProcurementRule(models.Model): + _inherit = 'procurement.rule' + + action = fields.Selection( + selection_add=[('split_procurement', 'Choose between MTS and MTO')]) + mts_rule_id = fields.Many2one( + 'procurement.rule', string="MTS Rule") + mto_rule_id = fields.Many2one( + 'procurement.rule', string="MTO Rule") + + @api.constrains('action', 'mts_rule_id', 'mto_rule_id') + def _check_mts_mto_rule(self): + for rule in self: + if rule.action == 'split_procurement': + if not rule.mts_rule_id or not rule.mto_rule_id: + msg = _('No MTS or MTO rule configured on procurement ' + 'rule: %s!') % (rule.name, ) + raise UserError(msg) + if (rule.mts_rule_id.location_src_id.id != + rule.mto_rule_id.location_src_id.id): + msg = _('Inconsistency between the source locations of ' + 'the mts and mto rules linked to the procurement ' + 'rule: %s! It should be the same.') % (rule.name,) + raise UserError(msg) + + @api.multi + def get_mto_qty_to_order(self, product, product_qty, product_uom, values): + self.ensure_one() + src_location_id = self.mts_rule_id.location_src_id.id + product_location = product.with_context(location=src_location_id) + virtual_available = product_location.virtual_available + qty_available = product.uom_id._compute_quantity( + virtual_available, product_uom) + + if qty_available > 0: + if qty_available >= product_qty: + return 0.0 + else: + return product_qty - qty_available + return product_qty + + def _run_split_procurement(self, product_id, product_qty, product_uom, + location_id, name, origin, values): + + needed_qty = self.get_mto_qty_to_order(product_id, product_qty, + product_uom, values) + + if needed_qty == 0.0: + getattr(self.mts_rule_id, '_run_%s' % self.mts_rule_id.action)( + product_id, product_qty, product_uom, location_id, name, + origin, values) + elif needed_qty == product_qty: + getattr(self.mto_rule_id, '_run_%s' % self.mto_rule_id.action)( + product_id, product_qty, product_uom, location_id, name, + origin, values) + else: + mts_qty = product_qty - needed_qty + getattr(self.mts_rule_id, '_run_%s' % self.mts_rule_id.action)( + product_id, mts_qty, product_uom, location_id, name, origin, + values) + getattr(self.mto_rule_id, '_run_%s' % self.mto_rule_id.action)( + product_id, needed_qty, product_uom, location_id, name, + origin, values) + return True diff --git a/stock_mts_mto_rule/model/rule.py b/stock_mts_mto_rule/model/rule.py deleted file mode 100644 index 38c22b4c4..000000000 --- a/stock_mts_mto_rule/model/rule.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- coding: utf-8 -*- -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). - -from odoo import models, api, fields -from odoo.tools.translate import _ - - -class ProcurementRule(models.Model): - _inherit = 'procurement.rule' - - mts_rule_id = fields.Many2one('procurement.rule', - string="MTS Rule") - mto_rule_id = fields.Many2one('procurement.rule', - string="MTO Rule") - - @api.model - def _get_action(self): - return [('split_procurement', _('Choose between MTS and MTO'))] + \ - super(ProcurementRule, self)._get_action() diff --git a/stock_mts_mto_rule/model/warehouse.py b/stock_mts_mto_rule/model/stock_warehouse.py similarity index 75% rename from stock_mts_mto_rule/model/warehouse.py rename to stock_mts_mto_rule/model/stock_warehouse.py index 7d6c9138c..6e97d9c54 100644 --- a/stock_mts_mto_rule/model/warehouse.py +++ b/stock_mts_mto_rule/model/stock_warehouse.py @@ -1,11 +1,10 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import models, api, fields, exceptions from odoo.tools.translate import _ -class Warehouse(models.Model): +class StockWarehouse(models.Model): _inherit = 'stock.warehouse' mto_mts_management = fields.Boolean( @@ -57,41 +56,17 @@ class Warehouse(models.Model): """ Prevent changing standard MTO rules' action from "move" """ - pull_rules_list = super(Warehouse, self)._get_mto_pull_rules_values( - route_values) + pull_rules_list = super(StockWarehouse, self).\ + _get_mto_pull_rules_values(route_values) for pull_rule in pull_rules_list: pull_rule['action'] = 'move' return pull_rules_list - @api.multi - def _get_push_pull_rules_values( - self, route_values, values=None, push_values=None, - pull_values=None, name_suffix=''): - self.ensure_one() - pull_obj = self.env['procurement.rule'] - res = super(Warehouse, self)._get_push_pull_rules_values( - route_values, values=values, push_values=push_values, - pull_values=pull_values, name_suffix=name_suffix) - customer_location = self._get_partner_locations() - location_id = customer_location[0].id - if self.mto_mts_management: - for pull in res[1]: - if pull['location_id'] == location_id: - pull_mto_mts = pull.copy() - pull_mto_mts_id = pull_obj.create(pull_mto_mts) - pull.update({ - 'action': 'split_procurement', - 'mto_rule_id': pull_mto_mts_id.id, - 'mts_rule_id': pull_mto_mts_id.id, - 'sequence': 10 - }) - return res - @api.multi def create_routes(self): pull_model = self.env['procurement.rule'] - res = super(Warehouse, self).create_routes() + res = super(StockWarehouse, self).create_routes() if self.mto_mts_management: mts_mto_pull_vals = self._get_mts_mto_rule() mts_mto_pull = pull_model.create(mts_mto_pull_vals) @@ -112,14 +87,14 @@ class Warehouse(models.Model): for warehouse in self: if warehouse.mts_mto_rule_id: warehouse.mts_mto_rule_id.unlink() - res = super(Warehouse, self).write(vals) + res = super(StockWarehouse, self).write(vals) if 'mto_mts_management' in vals: self.with_context({'active_test': False})._update_routes() return res @api.model def get_all_routes_for_wh(self): - all_routes = super(Warehouse, self).get_all_routes_for_wh() + all_routes = super(StockWarehouse, self).get_all_routes_for_wh() if self.mto_mts_management and self.mts_mto_rule_id.route_id: all_routes += self.mts_mto_rule_id.route_id @@ -128,7 +103,7 @@ class Warehouse(models.Model): @api.multi def _update_name_and_code(self, name, code): - res = super(Warehouse, self)._update_name_and_code(name, code) + res = super(StockWarehouse, self)._update_name_and_code(name, code) if not name: return res for warehouse in self.filtered('mts_mto_rule_id'): @@ -144,12 +119,11 @@ class Warehouse(models.Model): if route_type in names: return names[route_type] - return super(Warehouse, self)._get_route_name(route_type) + return super(StockWarehouse, self)._get_route_name(route_type) @api.multi def _update_routes(self): - res = super(Warehouse, self)._update_routes() - + res = super(StockWarehouse, self)._update_routes() for warehouse in self: mts_mto_rule_id = warehouse.mts_mto_rule_id if warehouse.delivery_steps and mts_mto_rule_id: @@ -158,6 +132,7 @@ class Warehouse(models.Model): warehouse.mto_pull_id.location_id mts_rules = pull_model.search([ ('location_src_id', '=', warehouse.lot_stock_id.id), + ('location_id', '=', warehouse.mto_pull_id.location_id.id), ('route_id', '=', warehouse.delivery_route_id.id), ]) warehouse.mts_mto_rule_id.mts_rule_id = mts_rules[0].id diff --git a/stock_mts_mto_rule/tests/test_mto_mts_route.py b/stock_mts_mto_rule/tests/test_mto_mts_route.py index ea24cf2ad..faa5c8c98 100644 --- a/stock_mts_mto_rule/tests/test_mto_mts_route.py +++ b/stock_mts_mto_rule/tests/test_mto_mts_route.py @@ -3,97 +3,74 @@ from odoo import exceptions from odoo.tests.common import TransactionCase -from datetime import datetime class TestMtoMtsRoute(TransactionCase): - def _procurement_create(self): - self.procurement = self.env['procurement.order'].create({ - 'location_id': self.env.ref('stock.stock_location_customers').id, + def _create_quant(self, qty): + self.quant = self.env['stock.quant'].create({ + 'owner_id': self.company_partner.id, + 'location_id': self.env.ref('stock.stock_location_stock').id, 'product_id': self.product.id, - 'product_qty': 2.0, - 'product_uom': 1, - 'warehouse_id': self.warehouse.id, - 'priority': '1', - 'date_planned': datetime.now().strftime("%Y-%m-%d %H:%M:%S"), - 'name': self.product.name, - 'origin': 'test', - 'group_id': self.group.id, + 'quantity': qty, }) def test_standard_mto_route(self): mto_route = self.env.ref('stock.route_warehouse0_mto') self.product.route_ids = [(6, 0, [mto_route.id])] - self._procurement_create() - self.assertEqual(self.warehouse.mto_pull_id, - self.procurement.rule_id) - self.assertEqual('make_to_order', - self.procurement.move_ids[0].procure_method) - self.assertEqual(self.procurement.product_qty, - self.procurement.move_ids[0].product_uom_qty) - self.assertEqual('waiting', - self.procurement.move_ids[0].state) + self.group.run(self.product, 2.0, self.uom, self.customer_loc, + self.product.name, 'test', self.procurement_vals) + moves = self.move_obj.search([('group_id', '=', self.group.id)]) + self.assertEqual(len(moves), 2) def test_standard_mts_route(self): - self._procurement_create() - procurement_id = self.procurement_obj.search([ - ('group_id', '=', self.procurement.group_id.id), - ('move_ids', '!=', False)], limit=1) - self.assertEqual('make_to_stock', - procurement_id.move_ids[0].procure_method) - self.assertEqual(self.procurement.product_qty, - procurement_id.move_ids[0].product_uom_qty) - self.assertEqual('confirmed', - procurement_id.move_ids[0].state) + self.group.run(self.product, 2.0, self.uom, self.customer_loc, + self.product.name, 'test', self.procurement_vals) + moves = self.move_obj.search([('group_id', '=', self.group.id)]) + self.assertEqual(len(moves), 1) def test_mts_mto_route_split(self): mto_mts_route = self.env.ref('stock_mts_mto_rule.route_mto_mts') self.product.route_ids = [(6, 0, [mto_mts_route.id])] - self.quant.qty = 1.0 - self._procurement_create() + self._create_quant(1.0) + self.group.run(self.product, 2.0, self.uom, self.customer_loc, + self.product.name, 'test', self.procurement_vals) moves = self.env['stock.move'].search( [('group_id', '=', self.group.id)]) - self.assertEqual(2, len(moves)) - self.assertEqual(1.0, moves[0].product_uom_qty) + self.assertEqual(3, len(moves)) + move_mts = self.env['stock.move'].search( + [('group_id', '=', self.group.id), + ('location_dest_id', '=', self.customer_loc.id), + ('procure_method', '=', 'make_to_stock')]) + self.assertEqual(1, len(move_mts)) + self.assertEqual(1.0, move_mts.product_uom_qty) + self.assertEqual('confirmed', move_mts.state) + move_mto = self.env['stock.move'].search( + [('group_id', '=', self.group.id), + ('location_dest_id', '=', self.customer_loc.id), + ('procure_method', '=', 'make_to_order')]) + self.assertEqual(1, len(move_mto)) + self.assertEqual('waiting', move_mto.state) - def test_mts_mto_route_split_done(self): + def test_mts_mto_route_mto_only(self): mto_mts_route = self.env.ref('stock_mts_mto_rule.route_mto_mts') self.product.route_ids = [(6, 0, [mto_mts_route.id])] - self.quant.qty = 1.0 - self._procurement_create() - self.assertEqual(self.procurement.state, 'running') - self.procurement.mts_mto_procurement_ids.mapped( - 'move_ids').action_done() - self.assertEqual(self.procurement.state, 'done') - - def test_mts_mto_route_split_cancel(self): - mto_mts_route = self.env.ref('stock_mts_mto_rule.route_mto_mts') - self.product.route_ids = [(6, 0, [mto_mts_route.id])] - self.quant.qty = 1.0 - self._procurement_create() - self.procurement.mts_mto_procurement_ids.cancel() - self.assertEqual(self.procurement.state, 'running') - self.procurement.check() - self.assertEqual(self.procurement.state, 'cancel') - - def test_mts_mto_route_mts_only(self): - mto_mts_route = self.env.ref('stock_mts_mto_rule.route_mto_mts') - self.product.route_ids = [(6, 0, [mto_mts_route.id])] - self.quant.qty = 0.0 - self._procurement_create() + self.group.run(self.product, 2.0, self.uom, self.customer_loc, + self.product.name, 'test', self.procurement_vals) moves = self.env['stock.move'].search( - [('group_id', '=', self.group.id)]) + [('group_id', '=', self.group.id), + ('location_dest_id', '=', self.customer_loc.id)]) self.assertEqual(1, len(moves)) self.assertEqual(2.0, moves[0].product_uom_qty) self.assertEqual('make_to_order', moves[0].procure_method) - def test_mts_mto_route_mto_only(self): + def test_mts_mto_route_mts_only(self): mto_mts_route = self.env.ref('stock_mts_mto_rule.route_mto_mts') self.product.route_ids = [(6, 0, [mto_mts_route.id])] - self.quant.qty = 3.0 - self._procurement_create() + self._create_quant(3.0) + self.group.run(self.product, 2.0, self.uom, self.customer_loc, + self.product.name, 'test', self.procurement_vals) moves = self.env['stock.move'].search( [('group_id', '=', self.group.id)]) self.assertEqual(1, len(moves)) @@ -101,6 +78,14 @@ class TestMtoMtsRoute(TransactionCase): self.assertEqual('make_to_stock', moves[0].procure_method) + def test_mts_mto_rule_contrains(self): + rule = self.env['procurement.rule'].search( + [('action', '=', 'split_procurement')], limit=1) + with self.assertRaises(exceptions.ValidationError): + rule.write({'mts_rule_id': False}) + with self.assertRaises(exceptions.ValidationError): + rule.write({'mts_rule_id': self.dummy_rule.id}) + def test_mts_mto_route_mto_removed(self): self.env.ref('stock_mts_mto_rule.route_mto_mts').unlink() self.warehouse.mts_mto_rule_id = False @@ -159,18 +144,36 @@ class TestMtoMtsRoute(TransactionCase): def setUp(self): super(TestMtoMtsRoute, self).setUp() + self.move_obj = self.env['stock.move'] self.warehouse = self.env.ref('stock.warehouse0') + self.uom = self.env['product.uom'].browse(1) self.warehouse.mto_mts_management = True + self.customer_loc = self.env.ref('stock.stock_location_customers') self.product = self.env.ref('product.product_product_4') self.company_partner = self.env.ref('base.main_partner') - self.procurement_obj = self.env['procurement.order'] self.group = self.env['procurement.group'].create({ 'name': 'test', }) - - self.quant = self.env['stock.quant'].create({ - 'owner_id': self.company_partner.id, + self.procurement_vals = { + 'warehouse_id': self.warehouse, 'group_id': self.group + } + # Since mrp and purchase modules may not be installed, we need to + # create a dummy step to show that mts, mto, and mts+mto flows work. + # Else, if purchase/manufacture are not installed, the mto would fail. + route_vals = { + 'warehouse_selectable': True, + 'name': 'dummy route', + } + self.dummy_route = self.env['stock.location.route'].create(route_vals) + rule_vals = { 'location_id': self.env.ref('stock.stock_location_stock').id, - 'product_id': self.product.id, - 'qty': 0.0, - }) + 'location_src_id': self.env.ref( + 'stock.stock_location_suppliers').id, + 'action': 'move', + 'warehouse_id': self.warehouse.id, + 'picking_type_id': self.env.ref('stock.picking_type_out').id, + 'name': 'dummy rule', + 'route_id': self.dummy_route.id, + } + self.dummy_rule = self.env['procurement.rule'].create(rule_vals) + self.warehouse.write({'route_ids': [(4, self.dummy_route.id)]}) diff --git a/stock_mts_mto_rule/view/pull_rule.xml b/stock_mts_mto_rule/view/pull_rule.xml index 9504f205a..86ca018e3 100644 --- a/stock_mts_mto_rule/view/pull_rule.xml +++ b/stock_mts_mto_rule/view/pull_rule.xml @@ -4,7 +4,7 @@ procurement.rule.mts.mto procurement.rule - +