diff --git a/stock_mts_mto_rule/README.rst b/stock_mts_mto_rule/README.rst index 6835c310c..098c2209e 100644 --- a/stock_mts_mto_rule/README.rst +++ b/stock_mts_mto_rule/README.rst @@ -47,7 +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/11.0 + :target: https://runbot.odoo-community.org/runbot/153/12.0 Known issues ============ @@ -73,6 +73,7 @@ Contributors ------------ * Florian da Costa +* Jared Kipe Do not contact contributors directly about support or help with technical issues. diff --git a/stock_mts_mto_rule/__init__.py b/stock_mts_mto_rule/__init__.py index 9186ee3ad..0650744f6 100644 --- a/stock_mts_mto_rule/__init__.py +++ b/stock_mts_mto_rule/__init__.py @@ -1 +1 @@ -from . import model +from . import models diff --git a/stock_mts_mto_rule/__manifest__.py b/stock_mts_mto_rule/__manifest__.py index 13ddfe770..87660811a 100644 --- a/stock_mts_mto_rule/__manifest__.py +++ b/stock_mts_mto_rule/__manifest__.py @@ -1,18 +1,22 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -{'name': 'Stock MTS+MTO Rule', - 'version': '11.0.1.0.0', - 'author': 'Akretion,Odoo Community Association (OCA)', - 'website': 'http://www.akretion.com', - 'license': 'AGPL-3', - 'category': 'Warehouse', - 'summary': 'Add a MTS+MTO route', - 'depends': ['stock', - ], - 'demo': [], - 'data': ['data/stock_data.xml', - 'view/pull_rule.xml', - 'view/warehouse.xml', - ], - 'installable': True, - } +{ + 'name': 'Stock MTS+MTO Rule', + 'summary': 'Add a MTS+MTO route', + 'version': '12.0.1.0.0', + 'development_status': 'Mature', + 'category': 'Warehouse', + 'website': 'https://github.com/OCA/stock-logistics-warehouse', + 'author': 'Akretion,Odoo Community Association (OCA)', + 'license': 'AGPL-3', + 'application': False, + 'installable': True, + 'depends': [ + 'stock', + ], + 'data': [ + 'data/stock_data.xml', + 'view/pull_rule.xml', + 'view/warehouse.xml', + ], +} diff --git a/stock_mts_mto_rule/i18n/cs_CZ.po b/stock_mts_mto_rule/i18n/cs_CZ.po index b30b6e245..f12fbcc9f 100644 --- a/stock_mts_mto_rule/i18n/cs_CZ.po +++ b/stock_mts_mto_rule/i18n/cs_CZ.po @@ -20,25 +20,22 @@ msgstr "" "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/stock_warehouse.py:35 -#, python-format -msgid "Can't find MTO Rule on the warehouse" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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." +#: selection:stock.rule,action:0 +msgid "Choose between MTS and MTO" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: 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 " @@ -46,7 +43,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -54,44 +51,61 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_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 +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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 "Pravidlo zadávání zakázek" +#: selection:stock.rule,action:0 +msgid "Pull & Push" +msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" @@ -100,5 +114,8 @@ msgstr "" msgid "Warehouse" msgstr "" +#~ msgid "Procurement Rule" +#~ msgstr "Pravidlo zadávání zakázek" + #~ msgid "Procurement" #~ msgstr "Zakázka" diff --git a/stock_mts_mto_rule/i18n/de.po b/stock_mts_mto_rule/i18n/de.po index ed76ed6e4..a16248eee 100644 --- a/stock_mts_mto_rule/i18n/de.po +++ b/stock_mts_mto_rule/i18n/de.po @@ -19,25 +19,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\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 "Kann MTO-Regel zum Lager nicht finden" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" +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 "Kann MTS-Regel zum Lager nicht finden" +#: selection:stock.rule,action:0 +msgid "Buy" +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 "Kann keine allg. MTO- oder MTS-Route finden" +#: selection:stock.rule,action:0 +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 +#: 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 " @@ -48,7 +45,7 @@ msgstr "" "anderenfalls wird das Produkt aus dem Bestand genommen." #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -56,44 +53,63 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id msgid "MTO Rule" msgstr "MTO-Regel" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mts_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id msgid "MTO+MTS rule" msgstr "MTO+MTS-Regel" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mts_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "MTS-Regel" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "MTS+MTO" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "MTO Auftragsfertigung + MTS Lagerfertigung" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" +msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +#, fuzzy +#| msgid "MTS Rule" +msgid "Stock Rule" +msgstr "MTS-Regel" + +#. 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 "Verwende MTO+MTS-Regeln" @@ -102,8 +118,17 @@ msgstr "Verwende MTO+MTS-Regeln" msgid "Warehouse" msgstr "Lager" -#~ msgid "Choose between MTS and MTO" -#~ msgstr "Wähle aus MTO und MTS" +#~ msgid "Can't find MTO Rule on the warehouse" +#~ msgstr "Kann MTO-Regel zum Lager nicht finden" + +#~ msgid "Can't find MTS Rule on the warehouse" +#~ msgstr "Kann MTS-Regel zum Lager nicht finden" + +#~ msgid "Can't find any generic MTS+MTO route." +#~ msgstr "Kann keine allg. MTO- oder MTS-Route finden" + +#~ msgid "Procurement Rule" +#~ msgstr "Beschaffungsregel" #~ msgid "Mto+Mts Procurement" #~ msgstr "MTO+MTS-Beschaffung" diff --git a/stock_mts_mto_rule/i18n/es.po b/stock_mts_mto_rule/i18n/es.po index 2737734a5..51963071d 100644 --- a/stock_mts_mto_rule/i18n/es.po +++ b/stock_mts_mto_rule/i18n/es.po @@ -20,27 +20,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\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 "No se puede encontrar un regla \"bajo pedido\" en el almacén" - -#. 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 "No se puede encontrar una regla \"bajo existencias\" en el almacén" - -#. 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." +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" msgstr "" -"No se puede encontrar una regla genérica MTS+MTO - \"bajo existencias+bajo " -"pedido\"." #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Buy" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +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 " @@ -51,7 +46,7 @@ msgstr "" "se cogerá el producto desde existencias." #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -59,44 +54,63 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id msgid "MTO Rule" msgstr "Regla \"bajo pedido\"" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mts_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id msgid "MTO+MTS rule" msgstr "Regla MTO+MTS" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mts_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "Regla \"bajo existencias\"" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "MTS+MTO" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "Bajo pedido + bajo existencias" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" +msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +#, fuzzy +#| msgid "MTS Rule" +msgid "Stock Rule" +msgstr "Regla \"bajo existencias\"" + +#. 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 "Usar reglas MTO+MTS" @@ -105,8 +119,19 @@ msgstr "Usar reglas MTO+MTS" msgid "Warehouse" msgstr "Almacén" -#~ msgid "Choose between MTS and MTO" -#~ msgstr "Escoja entre \"bajo existencias\" o \"bajo pedido\"" +#~ msgid "Can't find MTO Rule on the warehouse" +#~ msgstr "No se puede encontrar un regla \"bajo pedido\" en el almacén" + +#~ msgid "Can't find MTS Rule on the warehouse" +#~ msgstr "No se puede encontrar una regla \"bajo existencias\" en el almacén" + +#~ msgid "Can't find any generic MTS+MTO route." +#~ msgstr "" +#~ "No se puede encontrar una regla genérica MTS+MTO - \"bajo existencias" +#~ "+bajo pedido\"." + +#~ msgid "Procurement Rule" +#~ msgstr "Regla de abastecimiento" #~ msgid "Mto+Mts Procurement" #~ msgstr "Abastecimiento MTO+MTS" diff --git a/stock_mts_mto_rule/i18n/es_MX.po b/stock_mts_mto_rule/i18n/es_MX.po index 6138e4ee5..f570f064d 100644 --- a/stock_mts_mto_rule/i18n/es_MX.po +++ b/stock_mts_mto_rule/i18n/es_MX.po @@ -20,25 +20,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\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" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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." +#: selection:stock.rule,action:0 +msgid "Choose between MTS and MTO" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: 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 " @@ -46,7 +43,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -54,44 +51,61 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_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 +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" diff --git a/stock_mts_mto_rule/i18n/fr.po b/stock_mts_mto_rule/i18n/fr.po index a6bede845..9302faa70 100644 --- a/stock_mts_mto_rule/i18n/fr.po +++ b/stock_mts_mto_rule/i18n/fr.po @@ -20,29 +20,24 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\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" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" msgstr "" -"Ne trouve pas la règle MTO (Make To Order: Fabrication à la commande) de " -"l'entrepôt" #. 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" +#: selection:stock.rule,action:0 +msgid "Buy" msgstr "" -"Ne trouve pas la règle MTS (Make To Stock: produit géré en stock) de " -"l'entrepôt" #. 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 "Aucune règle par défaut MTS+MTO configurée. " +#: selection:stock.rule,action:0 +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 +#: 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 " @@ -53,7 +48,7 @@ msgstr "" "à 0, sinon, le produit sera pris en stock." #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -61,44 +56,63 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id msgid "MTO Rule" msgstr "MTO (Fab. à la demande)" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mts_mto_rule_id +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "MTS: Produit stocké" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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 "Règle d'approvisionnement" +#: selection:stock.rule,action:0 +msgid "Pull & Push" +msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +#, fuzzy +#| msgid "MTS Rule" +msgid "Stock Rule" +msgstr "MTS: Produit stocké" + +#. 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 "" @@ -107,10 +121,21 @@ msgstr "" msgid "Warehouse" msgstr "Entrepôt" -#~ msgid "Choose between MTS and MTO" +#~ msgid "Can't find MTO Rule on the warehouse" #~ msgstr "" -#~ "Choisir entre MTS(Make To Stock: Produit géré en stock) et MTO(Make To " -#~ "Order: Produit fabriqué à la commande). " +#~ "Ne trouve pas la règle MTO (Make To Order: Fabrication à la commande) de " +#~ "l'entrepôt" + +#~ msgid "Can't find MTS Rule on the warehouse" +#~ msgstr "" +#~ "Ne trouve pas la règle MTS (Make To Stock: produit géré en stock) de " +#~ "l'entrepôt" + +#~ msgid "Can't find any generic MTS+MTO route." +#~ msgstr "Aucune règle par défaut MTS+MTO configurée. " + +#~ msgid "Procurement Rule" +#~ msgstr "Règle d'approvisionnement" #~ msgid "Procurement" #~ msgstr "Procurement" diff --git a/stock_mts_mto_rule/i18n/fr_FR.po b/stock_mts_mto_rule/i18n/fr_FR.po index 7391ed80c..d243f481b 100644 --- a/stock_mts_mto_rule/i18n/fr_FR.po +++ b/stock_mts_mto_rule/i18n/fr_FR.po @@ -20,25 +20,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\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" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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." +#: selection:stock.rule,action:0 +msgid "Choose between MTS and MTO" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: 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 " @@ -46,7 +43,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -54,44 +51,61 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_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 +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" diff --git a/stock_mts_mto_rule/i18n/hr.po b/stock_mts_mto_rule/i18n/hr.po index b96b37f32..2872e6a0c 100644 --- a/stock_mts_mto_rule/i18n/hr.po +++ b/stock_mts_mto_rule/i18n/hr.po @@ -21,25 +21,22 @@ msgstr "" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\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 "Nemogu naći MTO pravilo na skladištu" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" +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 "Nemogu naći MTO pravilo na skladištu" +#: selection:stock.rule,action:0 +msgid "Buy" +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 "Nemogu naći nijedno generičko MTO+MTS pravilo." +#: selection:stock.rule,action:0 +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 +#: 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 " @@ -47,7 +44,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -55,44 +52,63 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id msgid "MTO Rule" msgstr "MTO pravilo" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mts_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id msgid "MTO+MTS rule" msgstr "MTO+MTS pravilo" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mts_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "MTS pravilo" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "MTS+MTO" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "Make To Order + Make To Stock" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" +msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +#, fuzzy +#| msgid "MTS Rule" +msgid "Stock Rule" +msgstr "MTS pravilo" + +#. 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 "Koristi MTO+MTS pravila" @@ -101,8 +117,17 @@ msgstr "Koristi MTO+MTS pravila" msgid "Warehouse" msgstr "Skladište" -#~ msgid "Choose between MTS and MTO" -#~ msgstr "Izaberite između MTO i MTS pravila" +#~ msgid "Can't find MTO Rule on the warehouse" +#~ msgstr "Nemogu naći MTO pravilo na skladištu" + +#~ msgid "Can't find MTS Rule on the warehouse" +#~ msgstr "Nemogu naći MTO pravilo na skladištu" + +#~ msgid "Can't find any generic MTS+MTO route." +#~ msgstr "Nemogu naći nijedno generičko MTO+MTS pravilo." + +#~ msgid "Procurement Rule" +#~ msgstr "Pavilo nabave" #~ msgid "Mto+Mts Procurement" #~ msgstr "Mto+Mts Nabava" diff --git a/stock_mts_mto_rule/i18n/it.po b/stock_mts_mto_rule/i18n/it.po index cc1b56b6e..3da138d0b 100644 --- a/stock_mts_mto_rule/i18n/it.po +++ b/stock_mts_mto_rule/i18n/it.po @@ -19,25 +19,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\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" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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." +#: selection:stock.rule,action:0 +msgid "Choose between MTS and MTO" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: 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 " @@ -45,7 +42,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -53,44 +50,61 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_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 +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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 "Regola d'Approvvigionamento" +#: selection:stock.rule,action:0 +msgid "Pull & Push" +msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" @@ -99,5 +113,8 @@ msgstr "" msgid "Warehouse" msgstr "Magazzino" +#~ msgid "Procurement Rule" +#~ msgstr "Regola d'Approvvigionamento" + #~ msgid "Procurement" #~ msgstr "Approvvigionamento" diff --git a/stock_mts_mto_rule/i18n/nl.po b/stock_mts_mto_rule/i18n/nl.po index 2226527b5..38a4a00c2 100644 --- a/stock_mts_mto_rule/i18n/nl.po +++ b/stock_mts_mto_rule/i18n/nl.po @@ -19,25 +19,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\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" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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." +#: selection:stock.rule,action:0 +msgid "Choose between MTS and MTO" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: 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 " @@ -45,7 +42,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -53,44 +50,61 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_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 +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" diff --git a/stock_mts_mto_rule/i18n/nl_NL.po b/stock_mts_mto_rule/i18n/nl_NL.po index 1965eca66..696c41af6 100644 --- a/stock_mts_mto_rule/i18n/nl_NL.po +++ b/stock_mts_mto_rule/i18n/nl_NL.po @@ -20,25 +20,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\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" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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 "" +#: selection:stock.rule,action:0 +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 +#: 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 " @@ -46,7 +43,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -54,44 +51,61 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id msgid "MTO Rule" msgstr "MTO Regel" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mts_mto_rule_id +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "Op Order + Op Voorrad" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" @@ -99,6 +113,3 @@ 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 0a3ff66b6..8d6fec33e 100644 --- a/stock_mts_mto_rule/i18n/pt_BR.po +++ b/stock_mts_mto_rule/i18n/pt_BR.po @@ -20,25 +20,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\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" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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." +#: selection:stock.rule,action:0 +msgid "Choose between MTS and MTO" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: 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 " @@ -46,7 +43,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -54,44 +51,61 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_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 +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" diff --git a/stock_mts_mto_rule/i18n/pt_PT.po b/stock_mts_mto_rule/i18n/pt_PT.po index fc38fce53..e39386323 100644 --- a/stock_mts_mto_rule/i18n/pt_PT.po +++ b/stock_mts_mto_rule/i18n/pt_PT.po @@ -20,25 +20,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\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" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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." +#: selection:stock.rule,action:0 +msgid "Choose between MTS and MTO" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: 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 " @@ -46,7 +43,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -54,44 +51,61 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_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 +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" diff --git a/stock_mts_mto_rule/i18n/ro.po b/stock_mts_mto_rule/i18n/ro.po index 3005a1938..49edc765f 100644 --- a/stock_mts_mto_rule/i18n/ro.po +++ b/stock_mts_mto_rule/i18n/ro.po @@ -20,25 +20,22 @@ msgstr "" "2:1));\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" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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." +#: selection:stock.rule,action:0 +msgid "Choose between MTS and MTO" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: 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 " @@ -46,7 +43,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -54,44 +51,61 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_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 +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" diff --git a/stock_mts_mto_rule/i18n/sk.po b/stock_mts_mto_rule/i18n/sk.po index 6f437a897..2a2940a51 100644 --- a/stock_mts_mto_rule/i18n/sk.po +++ b/stock_mts_mto_rule/i18n/sk.po @@ -19,25 +19,22 @@ msgstr "" "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/stock_warehouse.py:35 -#, python-format -msgid "Can't find MTO Rule on the warehouse" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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." +#: selection:stock.rule,action:0 +msgid "Choose between MTS and MTO" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: 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 " @@ -45,7 +42,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -53,44 +50,61 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_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 +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" diff --git a/stock_mts_mto_rule/i18n/sl.po b/stock_mts_mto_rule/i18n/sl.po index 80ea7936a..b7c27243e 100644 --- a/stock_mts_mto_rule/i18n/sl.po +++ b/stock_mts_mto_rule/i18n/sl.po @@ -20,25 +20,22 @@ msgstr "" "%100==4 ? 2 : 3);\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 "Za skladišče ni pravila 'po naročilu'" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" +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 "Za skladišče ni pravila 'na zalogo'" +#: selection:stock.rule,action:0 +msgid "Buy" +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 "Ni generične proge 'na zalogo' + 'po naročilu'" +#: selection:stock.rule,action:0 +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 +#: 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 " @@ -49,7 +46,7 @@ msgstr "" "proizvod vzame iz zaloge." #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -57,44 +54,63 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id msgid "MTO Rule" msgstr "Pravilo 'Po naročilu'" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mts_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id msgid "MTO+MTS rule" msgstr "Pravilo 'Po naročilu' + 'Na zalogo'" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mts_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "Pravilo 'Na zalogo'" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "Na zalogo + Po naročilu" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "Naredi po naročilu + Naredi na zalogo" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" +msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +#, fuzzy +#| msgid "MTS Rule" +msgid "Stock Rule" +msgstr "Pravilo 'Na zalogo'" + +#. 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 "Uporabi pravila Po naročilu + Na zalogo" @@ -103,8 +119,17 @@ msgstr "Uporabi pravila Po naročilu + Na zalogo" msgid "Warehouse" msgstr "Skladišče" -#~ msgid "Choose between MTS and MTO" -#~ msgstr "Izbira med 'Na zalogo' in 'Po naročilu'" +#~ msgid "Can't find MTO Rule on the warehouse" +#~ msgstr "Za skladišče ni pravila 'po naročilu'" + +#~ msgid "Can't find MTS Rule on the warehouse" +#~ msgstr "Za skladišče ni pravila 'na zalogo'" + +#~ msgid "Can't find any generic MTS+MTO route." +#~ msgstr "Ni generične proge 'na zalogo' + 'po naročilu'" + +#~ msgid "Procurement Rule" +#~ msgstr "Oskrbovalno pravilo" #~ msgid "Mto+Mts Procurement" #~ msgstr "Oskrbovanja 'po naročilu'+'na zalogo'" diff --git a/stock_mts_mto_rule/i18n/stock_mts_mto_rule.pot b/stock_mts_mto_rule/i18n/stock_mts_mto_rule.pot index d669ae7b1..d1ba61c09 100644 --- a/stock_mts_mto_rule/i18n/stock_mts_mto_rule.pot +++ b/stock_mts_mto_rule/i18n/stock_mts_mto_rule.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -14,73 +14,87 @@ msgstr "" "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" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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." +#: selection:stock.rule,action:0 +msgid "Choose between MTS and MTO" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: 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 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_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 +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" diff --git a/stock_mts_mto_rule/i18n/tr_TR.po b/stock_mts_mto_rule/i18n/tr_TR.po index 765725614..50680e639 100644 --- a/stock_mts_mto_rule/i18n/tr_TR.po +++ b/stock_mts_mto_rule/i18n/tr_TR.po @@ -20,25 +20,22 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\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" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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." +#: selection:stock.rule,action:0 +msgid "Choose between MTS and MTO" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: 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 " @@ -46,7 +43,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -54,44 +51,61 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_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 +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" diff --git a/stock_mts_mto_rule/i18n/vi_VN.po b/stock_mts_mto_rule/i18n/vi_VN.po index 74b2bbd2e..51375f100 100644 --- a/stock_mts_mto_rule/i18n/vi_VN.po +++ b/stock_mts_mto_rule/i18n/vi_VN.po @@ -20,25 +20,22 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\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" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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." +#: selection:stock.rule,action:0 +msgid "Choose between MTS and MTO" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: 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 " @@ -46,7 +43,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -54,44 +51,61 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_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 +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" diff --git a/stock_mts_mto_rule/i18n/zh_CN.po b/stock_mts_mto_rule/i18n/zh_CN.po index af7ff4c0d..70bbc4606 100644 --- a/stock_mts_mto_rule/i18n/zh_CN.po +++ b/stock_mts_mto_rule/i18n/zh_CN.po @@ -20,25 +20,22 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\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" +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action +msgid "Action" 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" +#: selection:stock.rule,action:0 +msgid "Buy" 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." +#: selection:stock.rule,action:0 +msgid "Choose between MTS and MTO" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: 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 " @@ -46,7 +43,7 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:27 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:28 #, python-format msgid "" "Inconsistency between the source locations of the mts and mto rules linked " @@ -54,44 +51,61 @@ msgid "" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_procurement_rule_mto_rule_id +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_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 +#: 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 +#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id msgid "MTS Rule" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:118 +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:36 #, python-format msgid "MTS+MTO" msgstr "" #. module: stock_mts_mto_rule +#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:57 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts +#, python-format msgid "Make To Order + Make To Stock" msgstr "" #. module: stock_mts_mto_rule -#: code:addons/stock_mts_mto_rule/model/procurement_rule.py:22 +#: code:addons/stock_mts_mto_rule/models/stock_rule.py:23 #, 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" +#: selection:stock.rule,action:0 +msgid "Pull & Push" msgstr "" #. module: stock_mts_mto_rule -#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse_mto_mts_management +#: selection:stock.rule,action:0 +msgid "Pull From" +msgstr "" + +#. module: stock_mts_mto_rule +#: selection:stock.rule,action:0 +msgid "Push To" +msgstr "" + +#. module: stock_mts_mto_rule +#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule +msgid "Stock 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 "" diff --git a/stock_mts_mto_rule/model/__init__.py b/stock_mts_mto_rule/model/__init__.py deleted file mode 100644 index 727b200ed..000000000 --- a/stock_mts_mto_rule/model/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -from . import procurement_rule -from . import stock_warehouse diff --git a/stock_mts_mto_rule/model/stock_warehouse.py b/stock_mts_mto_rule/model/stock_warehouse.py deleted file mode 100644 index 6e97d9c54..000000000 --- a/stock_mts_mto_rule/model/stock_warehouse.py +++ /dev/null @@ -1,139 +0,0 @@ -# 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 StockWarehouse(models.Model): - _inherit = 'stock.warehouse' - - mto_mts_management = fields.Boolean( - 'Use MTO+MTS rules', - help='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') - mts_mto_rule_id = fields.Many2one('procurement.rule', - 'MTO+MTS rule') - - @api.multi - def _get_mts_mto_rule(self): - self.ensure_one() - route_model = self.env['stock.location.route'] - pull_model = self.env['procurement.rule'] - try: - mts_mto_route = self.env.ref( - 'stock_mts_mto_rule.route_mto_mts') - except: - mts_mto_route = route_model.search([ - ('name', 'like', 'Make To Order + Make To Stock') - ]) - if not mts_mto_route: - raise exceptions.Warning(_( - 'Can\'t find any generic MTS+MTO route.')) - - if not self.mto_pull_id: - raise exceptions.Warning(_( - 'Can\'t find MTO Rule on the warehouse')) - - mts_rules = pull_model.search( - [('location_src_id', '=', self.lot_stock_id.id), - ('route_id', '=', self.delivery_route_id.id)]) - if not mts_rules: - raise exceptions.Warning(_( - 'Can\'t find MTS Rule on the warehouse')) - return { - 'name': self._format_routename(route_type='mts_mto'), - 'route_id': mts_mto_route.id, - 'action': 'split_procurement', - 'mto_rule_id': self.mto_pull_id.id, - 'mts_rule_id': mts_rules[0].id, - 'warehouse_id': self.id, - 'location_id': self.mto_pull_id.location_id.id, - 'picking_type_id': self.mto_pull_id.picking_type_id.id, - } - - def _get_mto_pull_rules_values(self, route_values): - """ - Prevent changing standard MTO rules' action from "move" - """ - 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 create_routes(self): - pull_model = self.env['procurement.rule'] - 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) - res['mts_mto_rule_id'] = mts_mto_pull.id - return res - - @api.multi - def write(self, vals): - pull_model = self.env['procurement.rule'] - if 'mto_mts_management' in vals: - if vals.get("mto_mts_management"): - for warehouse in self: - if not warehouse.mts_mto_rule_id: - rule_vals = warehouse._get_mts_mto_rule() - mts_mto_pull = pull_model.create(rule_vals) - vals['mts_mto_rule_id'] = mts_mto_pull.id - else: - for warehouse in self: - if warehouse.mts_mto_rule_id: - warehouse.mts_mto_rule_id.unlink() - 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(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 - - return all_routes - - @api.multi - def _update_name_and_code(self, 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'): - warehouse.mts_mto_rule_id.name = ( - warehouse.mts_mto_rule_id.name.replace( - warehouse.name, name, 1, - ) - ) - return res - - def _get_route_name(self, route_type): - names = {'mts_mto': _('MTS+MTO')} - if route_type in names: - return names[route_type] - - return super(StockWarehouse, self)._get_route_name(route_type) - - @api.multi - def _update_routes(self): - 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: - pull_model = self.env['procurement.rule'] - warehouse.mts_mto_rule_id.location_id = \ - 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 - return res diff --git a/stock_mts_mto_rule/models/__init__.py b/stock_mts_mto_rule/models/__init__.py new file mode 100644 index 000000000..58f5bc0da --- /dev/null +++ b/stock_mts_mto_rule/models/__init__.py @@ -0,0 +1,2 @@ +from . import stock_rule +from . import stock_warehouse diff --git a/stock_mts_mto_rule/model/procurement_rule.py b/stock_mts_mto_rule/models/stock_rule.py similarity index 73% rename from stock_mts_mto_rule/model/procurement_rule.py rename to stock_mts_mto_rule/models/stock_rule.py index d4752e420..eea219dcc 100644 --- a/stock_mts_mto_rule/model/procurement_rule.py +++ b/stock_mts_mto_rule/models/stock_rule.py @@ -1,18 +1,19 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import models, api, fields, _ -from odoo.exceptions import UserError +from odoo import api, fields, models, _ +from odoo.exceptions import ValidationError +from odoo.tools import float_compare, float_is_zero -class ProcurementRule(models.Model): - _inherit = 'procurement.rule' +class StockRule(models.Model): + _inherit = 'stock.rule' action = fields.Selection( selection_add=[('split_procurement', 'Choose between MTS and MTO')]) mts_rule_id = fields.Many2one( - 'procurement.rule', string="MTS Rule") + 'stock.rule', string="MTS Rule") mto_rule_id = fields.Many2one( - 'procurement.rule', string="MTO Rule") + 'stock.rule', string="MTO Rule") @api.constrains('action', 'mts_rule_id', 'mto_rule_id') def _check_mts_mto_rule(self): @@ -21,25 +22,27 @@ class ProcurementRule(models.Model): 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) + raise ValidationError(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) + raise ValidationError(msg) @api.multi def get_mto_qty_to_order(self, product, product_qty, product_uom, values): self.ensure_one() + precision = self.env['decimal.precision']\ + .precision_get('Product Unit of Measure') 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: + if float_compare(qty_available, 0.0, precision_digits=precision) > 0: + if float_compare(qty_available, product_qty, + precision_digits=precision) >= 0: return 0.0 else: return product_qty - qty_available @@ -47,15 +50,17 @@ class ProcurementRule(models.Model): def _run_split_procurement(self, product_id, product_qty, product_uom, location_id, name, origin, values): - + precision = self.env['decimal.precision']\ + .precision_get('Product Unit of Measure') needed_qty = self.get_mto_qty_to_order(product_id, product_qty, product_uom, values) - if needed_qty == 0.0: + if float_is_zero(needed_qty, precision_digits=precision): 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: + elif float_compare(needed_qty, product_qty, + precision_digits=precision) == 0.0: getattr(self.mto_rule_id, '_run_%s' % self.mto_rule_id.action)( product_id, product_qty, product_uom, location_id, name, origin, values) diff --git a/stock_mts_mto_rule/models/stock_warehouse.py b/stock_mts_mto_rule/models/stock_warehouse.py new file mode 100644 index 000000000..ed8377bc9 --- /dev/null +++ b/stock_mts_mto_rule/models/stock_warehouse.py @@ -0,0 +1,93 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models, _ + + +class StockWarehouse(models.Model): + _inherit = 'stock.warehouse' + + mto_mts_management = fields.Boolean( + 'Use MTO+MTS rules', + help='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') + mts_mto_rule_id = fields.Many2one('stock.rule', + 'MTO+MTS rule') + + def _get_all_routes(self): + routes = super(StockWarehouse, self)._get_all_routes() + routes |= self.mapped('mts_mto_rule_id.route_id') + return routes + + def _update_name_and_code(self, new_name=False, new_code=False): + res = super(StockWarehouse, self)._update_name_and_code(new_name, + new_code) + if not new_name: + return res + for warehouse in self.filtered('mts_mto_rule_id'): + warehouse.mts_mto_rule_id.write({ + 'name': warehouse.mts_mto_rule_id.name.replace(warehouse.name, + new_name, 1), + }) + return res + + def _get_route_name(self, route_type): + if route_type == 'mts_mto': + return _('MTS+MTO') + return super(StockWarehouse, self)._get_route_name(route_type) + + def _get_global_route_rules_values(self): + rule = self.get_rules_dict()[self.id][self.delivery_steps] + rule = [r for r in rule if r.from_loc == self.lot_stock_id][0] + location_id = rule.from_loc + location_dest_id = rule.dest_loc + picking_type_id = rule.picking_type + res = super(StockWarehouse, self)._get_global_route_rules_values() + res.update({ + 'mts_mto_rule_id': { + 'depends': ['delivery_steps', 'mto_mts_management'], + 'create_values': { + 'action': 'pull', + 'procure_method': 'make_to_order', + 'company_id': self.company_id.id, + 'auto': 'manual', + 'propagate': True, + 'route_id': self._find_global_route( + 'stock_mts_mto_rule.route_mto_mts', + _('Make To Order + Make To Stock')).id, + }, + 'update_values': { + 'active': self.mto_mts_management, + 'name': self._format_rulename(location_id, + location_dest_id, + 'MTS+MTO'), + 'location_id': location_dest_id.id, + 'location_src_id': location_id.id, + 'picking_type_id': picking_type_id.id, + } + }, + }) + return res + + def _create_or_update_global_routes_rules(self): + res = super(StockWarehouse, self)\ + ._create_or_update_global_routes_rules() + + if (self.mto_mts_management and self.mts_mto_rule_id + and self.mts_mto_rule_id.action != 'split_procurement'): + # Cannot create or update with the 'split_procurement' action due + # to constraint and the fact that the constrained rule_ids may + # not exist during the initial (or really any) calls of + # _get_global_route_rules_values + rule = self.env['stock.rule'].search([ + ('location_id', '=', self.mts_mto_rule_id.location_id.id), + ('location_src_id', '=', + self.mts_mto_rule_id.location_src_id.id), + ('route_id', '=', self.delivery_route_id.id), + ], limit=1) + self.mts_mto_rule_id.write({ + 'action': 'split_procurement', + 'mts_rule_id': rule.id, + 'mto_rule_id': self.mto_pull_id.id, + }) + return res diff --git a/stock_mts_mto_rule/tests/__init__.py b/stock_mts_mto_rule/tests/__init__.py index 96aebab0d..51420794c 100644 --- a/stock_mts_mto_rule/tests/__init__.py +++ b/stock_mts_mto_rule/tests/__init__.py @@ -1,2 +1 @@ -# -*- coding: utf-8 -*- from . import test_mto_mts_route 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 faa5c8c98..6f07eb7d9 100644 --- a/stock_mts_mto_rule/tests/test_mto_mts_route.py +++ b/stock_mts_mto_rule/tests/test_mto_mts_route.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import exceptions @@ -79,7 +78,7 @@ class TestMtoMtsRoute(TransactionCase): moves[0].procure_method) def test_mts_mto_rule_contrains(self): - rule = self.env['procurement.rule'].search( + rule = self.env['stock.rule'].search( [('action', '=', 'split_procurement')], limit=1) with self.assertRaises(exceptions.ValidationError): rule.write({'mts_rule_id': False}) @@ -88,30 +87,32 @@ class TestMtoMtsRoute(TransactionCase): 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 - with self.assertRaises(exceptions.Warning): - self.warehouse.mto_mts_management = True + with self.assertRaises(exceptions.UserError): + # mts_mto_rule_id is checked as a global rule + self.warehouse.mts_mto_rule_id = False def test_mts_mto_route_mts_removed(self): self.warehouse.mto_mts_management = True - self.env['procurement.rule'].search([ + rules = self.env['stock.rule'].search([ ('location_src_id', '=', self.warehouse.lot_stock_id.id), ('route_id', '=', self.warehouse.delivery_route_id.id), - ]).unlink() + ]) + self.env.cr.execute( + 'UPDATE stock_move SET rule_id = NULL WHERE rule_id IN %s', + (tuple(rules.ids), )) self.warehouse.mts_mto_rule_id = False - with self.assertRaises(exceptions.Warning): - self.warehouse.mto_mts_management = True + self.warehouse.mto_mts_management = True + self.assertTrue(self.warehouse.mts_mto_rule_id) def test_mts_mto_route_mto_no_mts_rule(self): self.warehouse.mts_mto_rule_id = False self.warehouse.mto_pull_id = False - with self.assertRaises(exceptions.Warning): - self.warehouse.mto_mts_management = True + self.warehouse.mto_mts_management = True + self.assertTrue(self.warehouse.mts_mto_rule_id) def test_create_routes(self): - rule_obj = self.env['procurement.rule'] - created_routes = self.warehouse.create_routes() - mts_mto_route = rule_obj.browse(created_routes['mts_mto_rule_id']) + self.warehouse._create_or_update_route() + mts_mto_route = self.warehouse.mts_mto_rule_id self.assertEqual(mts_mto_route.warehouse_id, self.warehouse) self.assertEqual( mts_mto_route.location_id, self.warehouse.mto_pull_id.location_id) @@ -126,11 +127,10 @@ class TestMtoMtsRoute(TransactionCase): warehouse_rule = self.warehouse.mts_mto_rule_id self.assertTrue(self.warehouse.mts_mto_rule_id) self.warehouse.mto_mts_management = False - self.assertFalse(warehouse_rule.exists()) - self.assertFalse(self.warehouse.mts_mto_rule_id) + self.assertFalse(warehouse_rule.active) def test_get_all_routes_for_wh(self): - routes = self.warehouse.get_all_routes_for_wh() + routes = self.warehouse._get_all_routes() self.assertTrue(self.warehouse.mts_mto_rule_id) self.assertTrue(self.warehouse.mts_mto_rule_id.route_id in routes) @@ -146,7 +146,7 @@ class TestMtoMtsRoute(TransactionCase): 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.uom = self.env['uom.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') @@ -169,11 +169,11 @@ class TestMtoMtsRoute(TransactionCase): 'location_id': self.env.ref('stock.stock_location_stock').id, 'location_src_id': self.env.ref( 'stock.stock_location_suppliers').id, - 'action': 'move', + 'action': 'pull', '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.dummy_rule = self.env['stock.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 86ca018e3..91722d6d3 100644 --- a/stock_mts_mto_rule/view/pull_rule.xml +++ b/stock_mts_mto_rule/view/pull_rule.xml @@ -1,10 +1,10 @@ - - procurement.rule.mts.mto - procurement.rule - + + stock.location.route.form.mts.mto + stock.location.route +