[MIG] Migrate stock_mts_mto_rule to 12.0

Major changes to the way Warehouses update their routes/rules and self heal.
Improved rule code to use `float_compare` and `float_is_zero`.
This commit is contained in:
Jared Kipe
2019-05-06 07:57:07 -07:00
committed by Pierrick Brun
parent eb75152a27
commit 06ffee38a8
30 changed files with 891 additions and 604 deletions

View File

@@ -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 .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :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 Known issues
============ ============
@@ -73,6 +73,7 @@ Contributors
------------ ------------
* Florian da Costa <florian.dacosta@akretion.com> * Florian da Costa <florian.dacosta@akretion.com>
* Jared Kipe <jared@hibou.io>
Do not contact contributors directly about support or help with technical issues. Do not contact contributors directly about support or help with technical issues.

View File

@@ -1 +1 @@
from . import model from . import models

View File

@@ -1,18 +1,22 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{'name': 'Stock MTS+MTO Rule', {
'version': '11.0.1.0.0', 'name': 'Stock MTS+MTO Rule',
'author': 'Akretion,Odoo Community Association (OCA)',
'website': 'http://www.akretion.com',
'license': 'AGPL-3',
'category': 'Warehouse',
'summary': 'Add a MTS+MTO route', 'summary': 'Add a MTS+MTO route',
'depends': ['stock', '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',
], ],
'demo': [], 'data': [
'data': ['data/stock_data.xml', 'data/stock_data.xml',
'view/pull_rule.xml', 'view/pull_rule.xml',
'view/warehouse.xml', 'view/warehouse.xml',
], ],
'installable': True,
} }

View File

@@ -20,25 +20,22 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -46,7 +43,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -54,44 +51,61 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "Pravidlo zadávání zakázek" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""
@@ -100,5 +114,8 @@ msgstr ""
msgid "Warehouse" msgid "Warehouse"
msgstr "" msgstr ""
#~ msgid "Procurement Rule"
#~ msgstr "Pravidlo zadávání zakázek"
#~ msgid "Procurement" #~ msgid "Procurement"
#~ msgstr "Zakázka" #~ msgstr "Zakázka"

View File

@@ -19,25 +19,22 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse" msgstr ""
msgstr "Kann MTO-Regel zum Lager nicht finden"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse" msgstr ""
msgstr "Kann MTS-Regel zum Lager nicht finden"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route." msgstr "Wähle aus MTO und MTS"
msgstr "Kann keine allg. MTO- oder MTS-Route finden"
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "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." "anderenfalls wird das Produkt aus dem Bestand genommen."
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -56,44 +53,63 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "MTO-Regel" msgstr "MTO-Regel"
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "MTO+MTS-Regel" msgstr "MTO+MTS-Regel"
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "MTS-Regel" msgstr "MTS-Regel"
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "MTS+MTO" msgstr "MTS+MTO"
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "MTO Auftragsfertigung + MTS Lagerfertigung" msgstr "MTO Auftragsfertigung + MTS Lagerfertigung"
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "Beschaffungsregel" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "Verwende MTO+MTS-Regeln" msgstr "Verwende MTO+MTS-Regeln"
@@ -102,8 +118,17 @@ msgstr "Verwende MTO+MTS-Regeln"
msgid "Warehouse" msgid "Warehouse"
msgstr "Lager" msgstr "Lager"
#~ msgid "Choose between MTS and MTO" #~ msgid "Can't find MTO Rule on the warehouse"
#~ msgstr "Wähle aus MTO und MTS" #~ 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" #~ msgid "Mto+Mts Procurement"
#~ msgstr "MTO+MTS-Beschaffung" #~ msgstr "MTO+MTS-Beschaffung"

View File

@@ -20,27 +20,22 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
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."
msgstr "" msgstr ""
"No se puede encontrar una regla genérica MTS+MTO - \"bajo existencias+bajo "
"pedido\"."
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "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." "se cogerá el producto desde existencias."
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -59,44 +54,63 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "Regla \"bajo pedido\"" msgstr "Regla \"bajo pedido\""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "Regla MTO+MTS" msgstr "Regla MTO+MTS"
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "Regla \"bajo existencias\"" msgstr "Regla \"bajo existencias\""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "MTS+MTO" msgstr "MTS+MTO"
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "Bajo pedido + bajo existencias" msgstr "Bajo pedido + bajo existencias"
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "Regla de abastecimiento" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "Usar reglas MTO+MTS" msgstr "Usar reglas MTO+MTS"
@@ -105,8 +119,19 @@ msgstr "Usar reglas MTO+MTS"
msgid "Warehouse" msgid "Warehouse"
msgstr "Almacén" msgstr "Almacén"
#~ msgid "Choose between MTS and MTO" #~ msgid "Can't find MTO Rule on the warehouse"
#~ msgstr "Escoja entre \"bajo existencias\" o \"bajo pedido\"" #~ 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" #~ msgid "Mto+Mts Procurement"
#~ msgstr "Abastecimiento MTO+MTS" #~ msgstr "Abastecimiento MTO+MTS"

View File

@@ -20,25 +20,22 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -46,7 +43,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -54,44 +51,61 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""

View File

@@ -20,29 +20,24 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
"Ne trouve pas la règle MTO (Make To Order: Fabrication à la commande) de "
"l'entrepôt"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" 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 #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route." msgstr ""
msgstr "Aucune règle par défaut MTS+MTO configurée. " "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 #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "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." "à 0, sinon, le produit sera pris en stock."
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -61,44 +56,63 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "MTO (Fab. à la demande)" msgstr "MTO (Fab. à la demande)"
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "MTS: Produit stocké" msgstr "MTS: Produit stocké"
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "Règle d'approvisionnement" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""
@@ -107,10 +121,21 @@ msgstr ""
msgid "Warehouse" msgid "Warehouse"
msgstr "Entrepôt" msgstr "Entrepôt"
#~ msgid "Choose between MTS and MTO" #~ msgid "Can't find MTO Rule on the warehouse"
#~ msgstr "" #~ msgstr ""
#~ "Choisir entre MTS(Make To Stock: Produit géré en stock) et MTO(Make To " #~ "Ne trouve pas la règle MTO (Make To Order: Fabrication à la commande) de "
#~ "Order: Produit fabriqué à la commande). " #~ "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" #~ msgid "Procurement"
#~ msgstr "Procurement" #~ msgstr "Procurement"

View File

@@ -20,25 +20,22 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -46,7 +43,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -54,44 +51,61 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""

View File

@@ -21,25 +21,22 @@ msgstr ""
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse" msgstr ""
msgstr "Nemogu naći MTO pravilo na skladištu"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse" msgstr ""
msgstr "Nemogu naći MTO pravilo na skladištu"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route." msgstr "Izaberite između MTO i MTS pravila"
msgstr "Nemogu naći nijedno generičko MTO+MTS pravilo."
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -47,7 +44,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -55,44 +52,63 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "MTO pravilo" msgstr "MTO pravilo"
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "MTO+MTS pravilo" msgstr "MTO+MTS pravilo"
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "MTS pravilo" msgstr "MTS pravilo"
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "MTS+MTO" msgstr "MTS+MTO"
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "Make To Order + Make To Stock" msgstr "Make To Order + Make To Stock"
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "Pavilo nabave" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "Koristi MTO+MTS pravila" msgstr "Koristi MTO+MTS pravila"
@@ -101,8 +117,17 @@ msgstr "Koristi MTO+MTS pravila"
msgid "Warehouse" msgid "Warehouse"
msgstr "Skladište" msgstr "Skladište"
#~ msgid "Choose between MTS and MTO" #~ msgid "Can't find MTO Rule on the warehouse"
#~ msgstr "Izaberite između MTO i MTS pravila" #~ 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" #~ msgid "Mto+Mts Procurement"
#~ msgstr "Mto+Mts Nabava" #~ msgstr "Mto+Mts Nabava"

View File

@@ -19,25 +19,22 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -45,7 +42,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -53,44 +50,61 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "Regola d'Approvvigionamento" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""
@@ -99,5 +113,8 @@ msgstr ""
msgid "Warehouse" msgid "Warehouse"
msgstr "Magazzino" msgstr "Magazzino"
#~ msgid "Procurement Rule"
#~ msgstr "Regola d'Approvvigionamento"
#~ msgid "Procurement" #~ msgid "Procurement"
#~ msgstr "Approvvigionamento" #~ msgstr "Approvvigionamento"

View File

@@ -19,25 +19,22 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -45,7 +42,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -53,44 +50,61 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""

View File

@@ -20,25 +20,22 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route." msgstr "Kies tussen MTS en MTO"
msgstr ""
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -46,7 +43,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -54,44 +51,61 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "MTO Regel" msgstr "MTO Regel"
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "Op Order + Op Voorrad" msgstr "Op Order + Op Voorrad"
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""
@@ -99,6 +113,3 @@ msgstr ""
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse #: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse" msgid "Warehouse"
msgstr "Magazijn" msgstr "Magazijn"
#~ msgid "Choose between MTS and MTO"
#~ msgstr "Kies tussen MTS en MTO"

View File

@@ -20,25 +20,22 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -46,7 +43,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -54,44 +51,61 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""

View File

@@ -20,25 +20,22 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -46,7 +43,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -54,44 +51,61 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""

View File

@@ -20,25 +20,22 @@ msgstr ""
"2:1));\n" "2:1));\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -46,7 +43,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -54,44 +51,61 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""

View File

@@ -19,25 +19,22 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -45,7 +42,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -53,44 +50,61 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""

View File

@@ -20,25 +20,22 @@ msgstr ""
"%100==4 ? 2 : 3);\n" "%100==4 ? 2 : 3);\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse" msgstr ""
msgstr "Za skladišče ni pravila 'po naročilu'"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse" msgstr ""
msgstr "Za skladišče ni pravila 'na zalogo'"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route." msgstr "Izbira med 'Na zalogo' in 'Po naročilu'"
msgstr "Ni generične proge 'na zalogo' + 'po naročilu'"
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -49,7 +46,7 @@ msgstr ""
"proizvod vzame iz zaloge." "proizvod vzame iz zaloge."
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -57,44 +54,63 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "Pravilo 'Po naročilu'" msgstr "Pravilo 'Po naročilu'"
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "Pravilo 'Po naročilu' + 'Na zalogo'" msgstr "Pravilo 'Po naročilu' + 'Na zalogo'"
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "Pravilo 'Na zalogo'" msgstr "Pravilo 'Na zalogo'"
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "Na zalogo + Po naročilu" msgstr "Na zalogo + Po naročilu"
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "Naredi po naročilu + Naredi na zalogo" msgstr "Naredi po naročilu + Naredi na zalogo"
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "Oskrbovalno pravilo" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "Uporabi pravila Po naročilu + Na zalogo" msgstr "Uporabi pravila Po naročilu + Na zalogo"
@@ -103,8 +119,17 @@ msgstr "Uporabi pravila Po naročilu + Na zalogo"
msgid "Warehouse" msgid "Warehouse"
msgstr "Skladišče" msgstr "Skladišče"
#~ msgid "Choose between MTS and MTO" #~ msgid "Can't find MTO Rule on the warehouse"
#~ msgstr "Izbira med 'Na zalogo' in 'Po naročilu'" #~ 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" #~ msgid "Mto+Mts Procurement"
#~ msgstr "Oskrbovanja 'po naročilu'+'na zalogo'" #~ msgstr "Oskrbovanja 'po naročilu'+'na zalogo'"

View File

@@ -4,7 +4,7 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 11.0\n" "Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
@@ -14,73 +14,87 @@ msgstr ""
"Plural-Forms: \n" "Plural-Forms: \n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" 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 "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, 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." msgid "Inconsistency between the source locations of the mts and mto rules linked to the procurement rule: %s! It should be the same."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""

View File

@@ -20,25 +20,22 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -46,7 +43,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -54,44 +51,61 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""

View File

@@ -20,25 +20,22 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n" "Plural-Forms: nplurals=1; plural=0;\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -46,7 +43,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -54,44 +51,61 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""

View File

@@ -20,25 +20,22 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n" "Plural-Forms: nplurals=1; plural=0;\n"
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:35 #: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
#, python-format msgid "Action"
msgid "Can't find MTO Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:42 #: selection:stock.rule,action:0
#, python-format msgid "Buy"
msgid "Can't find MTS Rule on the warehouse"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/model/stock_warehouse.py:31 #: selection:stock.rule,action:0
#, python-format msgid "Choose between MTS and MTO"
msgid "Can't find any generic MTS+MTO route."
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 "" msgid ""
"If this new route is selected on product form view, a purchase order will be " "If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be " "created only if the virtual stock is less than 0 else, the product will be "
@@ -46,7 +43,7 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "" msgid ""
"Inconsistency between the source locations of the mts and mto rules linked " "Inconsistency between the source locations of the mts and mto rules linked "
@@ -54,44 +51,61 @@ msgid ""
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTO+MTS rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "MTS Rule"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "MTS+MTO" msgid "MTS+MTO"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock" msgid "Make To Order + Make To Stock"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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 #, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!" msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_procurement_rule #: selection:stock.rule,action:0
msgid "Procurement Rule" msgid "Pull & Push"
msgstr "" msgstr ""
#. module: stock_mts_mto_rule #. 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" msgid "Use MTO+MTS rules"
msgstr "" msgstr ""

View File

@@ -1,2 +0,0 @@
from . import procurement_rule
from . import stock_warehouse

View File

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

View File

@@ -0,0 +1,2 @@
from . import stock_rule
from . import stock_warehouse

View File

@@ -1,18 +1,19 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, api, fields, _ from odoo import api, fields, models, _
from odoo.exceptions import UserError from odoo.exceptions import ValidationError
from odoo.tools import float_compare, float_is_zero
class ProcurementRule(models.Model): class StockRule(models.Model):
_inherit = 'procurement.rule' _inherit = 'stock.rule'
action = fields.Selection( action = fields.Selection(
selection_add=[('split_procurement', 'Choose between MTS and MTO')]) selection_add=[('split_procurement', 'Choose between MTS and MTO')])
mts_rule_id = fields.Many2one( mts_rule_id = fields.Many2one(
'procurement.rule', string="MTS Rule") 'stock.rule', string="MTS Rule")
mto_rule_id = fields.Many2one( mto_rule_id = fields.Many2one(
'procurement.rule', string="MTO Rule") 'stock.rule', string="MTO Rule")
@api.constrains('action', 'mts_rule_id', 'mto_rule_id') @api.constrains('action', 'mts_rule_id', 'mto_rule_id')
def _check_mts_mto_rule(self): 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: if not rule.mts_rule_id or not rule.mto_rule_id:
msg = _('No MTS or MTO rule configured on procurement ' msg = _('No MTS or MTO rule configured on procurement '
'rule: %s!') % (rule.name, ) 'rule: %s!') % (rule.name, )
raise UserError(msg) raise ValidationError(msg)
if (rule.mts_rule_id.location_src_id.id != if (rule.mts_rule_id.location_src_id.id !=
rule.mto_rule_id.location_src_id.id): rule.mto_rule_id.location_src_id.id):
msg = _('Inconsistency between the source locations of ' msg = _('Inconsistency between the source locations of '
'the mts and mto rules linked to the procurement ' 'the mts and mto rules linked to the procurement '
'rule: %s! It should be the same.') % (rule.name,) 'rule: %s! It should be the same.') % (rule.name,)
raise UserError(msg) raise ValidationError(msg)
@api.multi @api.multi
def get_mto_qty_to_order(self, product, product_qty, product_uom, values): def get_mto_qty_to_order(self, product, product_qty, product_uom, values):
self.ensure_one() 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 src_location_id = self.mts_rule_id.location_src_id.id
product_location = product.with_context(location=src_location_id) product_location = product.with_context(location=src_location_id)
virtual_available = product_location.virtual_available virtual_available = product_location.virtual_available
qty_available = product.uom_id._compute_quantity( qty_available = product.uom_id._compute_quantity(
virtual_available, product_uom) virtual_available, product_uom)
if float_compare(qty_available, 0.0, precision_digits=precision) > 0:
if qty_available > 0: if float_compare(qty_available, product_qty,
if qty_available >= product_qty: precision_digits=precision) >= 0:
return 0.0 return 0.0
else: else:
return product_qty - qty_available return product_qty - qty_available
@@ -47,15 +50,17 @@ class ProcurementRule(models.Model):
def _run_split_procurement(self, product_id, product_qty, product_uom, def _run_split_procurement(self, product_id, product_qty, product_uom,
location_id, name, origin, values): 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, needed_qty = self.get_mto_qty_to_order(product_id, product_qty,
product_uom, values) 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)( getattr(self.mts_rule_id, '_run_%s' % self.mts_rule_id.action)(
product_id, product_qty, product_uom, location_id, name, product_id, product_qty, product_uom, location_id, name,
origin, values) 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)( getattr(self.mto_rule_id, '_run_%s' % self.mto_rule_id.action)(
product_id, product_qty, product_uom, location_id, name, product_id, product_qty, product_uom, location_id, name,
origin, values) origin, values)

View File

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

View File

@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
from . import test_mto_mts_route from . import test_mto_mts_route

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import exceptions from odoo import exceptions
@@ -79,7 +78,7 @@ class TestMtoMtsRoute(TransactionCase):
moves[0].procure_method) moves[0].procure_method)
def test_mts_mto_rule_contrains(self): def test_mts_mto_rule_contrains(self):
rule = self.env['procurement.rule'].search( rule = self.env['stock.rule'].search(
[('action', '=', 'split_procurement')], limit=1) [('action', '=', 'split_procurement')], limit=1)
with self.assertRaises(exceptions.ValidationError): with self.assertRaises(exceptions.ValidationError):
rule.write({'mts_rule_id': False}) rule.write({'mts_rule_id': False})
@@ -88,30 +87,32 @@ class TestMtoMtsRoute(TransactionCase):
def test_mts_mto_route_mto_removed(self): def test_mts_mto_route_mto_removed(self):
self.env.ref('stock_mts_mto_rule.route_mto_mts').unlink() self.env.ref('stock_mts_mto_rule.route_mto_mts').unlink()
with self.assertRaises(exceptions.UserError):
# mts_mto_rule_id is checked as a global rule
self.warehouse.mts_mto_rule_id = False self.warehouse.mts_mto_rule_id = False
with self.assertRaises(exceptions.Warning):
self.warehouse.mto_mts_management = True
def test_mts_mto_route_mts_removed(self): def test_mts_mto_route_mts_removed(self):
self.warehouse.mto_mts_management = True 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), ('location_src_id', '=', self.warehouse.lot_stock_id.id),
('route_id', '=', self.warehouse.delivery_route_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 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): def test_mts_mto_route_mto_no_mts_rule(self):
self.warehouse.mts_mto_rule_id = False self.warehouse.mts_mto_rule_id = False
self.warehouse.mto_pull_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): def test_create_routes(self):
rule_obj = self.env['procurement.rule'] self.warehouse._create_or_update_route()
created_routes = self.warehouse.create_routes() mts_mto_route = self.warehouse.mts_mto_rule_id
mts_mto_route = rule_obj.browse(created_routes['mts_mto_rule_id'])
self.assertEqual(mts_mto_route.warehouse_id, self.warehouse) self.assertEqual(mts_mto_route.warehouse_id, self.warehouse)
self.assertEqual( self.assertEqual(
mts_mto_route.location_id, self.warehouse.mto_pull_id.location_id) 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 warehouse_rule = self.warehouse.mts_mto_rule_id
self.assertTrue(self.warehouse.mts_mto_rule_id) self.assertTrue(self.warehouse.mts_mto_rule_id)
self.warehouse.mto_mts_management = False self.warehouse.mto_mts_management = False
self.assertFalse(warehouse_rule.exists()) self.assertFalse(warehouse_rule.active)
self.assertFalse(self.warehouse.mts_mto_rule_id)
def test_get_all_routes_for_wh(self): 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)
self.assertTrue(self.warehouse.mts_mto_rule_id.route_id in routes) self.assertTrue(self.warehouse.mts_mto_rule_id.route_id in routes)
@@ -146,7 +146,7 @@ class TestMtoMtsRoute(TransactionCase):
super(TestMtoMtsRoute, self).setUp() super(TestMtoMtsRoute, self).setUp()
self.move_obj = self.env['stock.move'] self.move_obj = self.env['stock.move']
self.warehouse = self.env.ref('stock.warehouse0') 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.warehouse.mto_mts_management = True
self.customer_loc = self.env.ref('stock.stock_location_customers') self.customer_loc = self.env.ref('stock.stock_location_customers')
self.product = self.env.ref('product.product_product_4') 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_id': self.env.ref('stock.stock_location_stock').id,
'location_src_id': self.env.ref( 'location_src_id': self.env.ref(
'stock.stock_location_suppliers').id, 'stock.stock_location_suppliers').id,
'action': 'move', 'action': 'pull',
'warehouse_id': self.warehouse.id, 'warehouse_id': self.warehouse.id,
'picking_type_id': self.env.ref('stock.picking_type_out').id, 'picking_type_id': self.env.ref('stock.picking_type_out').id,
'name': 'dummy rule', 'name': 'dummy rule',
'route_id': self.dummy_route.id, '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)]}) self.warehouse.write({'route_ids': [(4, self.dummy_route.id)]})

View File

@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<odoo> <odoo>
<record id="view_procurement_rule_form_mto_mto" model="ir.ui.view"> <record id="stock_location_route_form_view_mto_mto" model="ir.ui.view">
<field name="name">procurement.rule.mts.mto</field> <field name="name">stock.location.route.form.mts.mto</field>
<field name="model">procurement.rule</field> <field name="model">stock.location.route</field>
<field name="inherit_id" ref="stock.view_procurement_rule_form" /> <field name="inherit_id" ref="stock.stock_location_route_form_view" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="action" position="after"> <field name="action" position="after">
<field name="mts_rule_id" <field name="mts_rule_id"