Merge PR #1503 into 16.0

Signed-off-by etobella
This commit is contained in:
OCA-git-bot
2022-10-16 17:32:51 +00:00
38 changed files with 3166 additions and 0 deletions

View File

@@ -0,0 +1 @@
../../../../stock_mts_mto_rule

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

View File

@@ -0,0 +1,121 @@
==================
Stock MTS+MTO Rule
==================
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_mts_mto_rule
:alt: OCA/stock-logistics-warehouse
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-15-0/stock-logistics-warehouse-15-0-stock_mts_mto_rule
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/153/15.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
This module add a Make To Stock + Make to Order Route.
If you choose the make to stock + make to order rule instead of the make to
order route, the creation of a purchase order will depend on the virtual stock.
There are 3 cases :
1. The virtual stock of the product is 0
=> It will act exactly like the make to order route.
2. The virtual stock is equal to the quantity ordered
=> It will act exactly like a make to stock route
3. The virtual stock is more than 0 but less than ordered quantity
=> On part of the products will be taken from stock and a purchase order
will be created for the rest. So it will act like both make to order and
make to stock rule.
Example :
We have a virtual stock of : 1 product A
A sale Order is made for 3 products A.
2 Procurements will be created :
1. 1 with a make to stock rule and a quantity of 1
2. 1 with a make to order rule and a quantity of 2.
After validation, a purchase order with 2 products will be created.
**Table of contents**
.. contents::
:local:
Configuration
=============
You have to select 'Use MTO+MTS rules' on the company's warehouse form.
Known issues
============
If you cancel a delivery order and then recreate it from Recreate
Delivery Order button in sale order form, then the stock level at the time of
the Re-Creation won't be taken into account. So if a purchase order was created
when the sale order was first validated, a similar purchase order will be created
during the Re-creation of the delivery order, even if not needed regarding the actual stock.
Usage
=====
You have to select the mts+mto route on the product form.
You should not select both the mts+mto route and the mto route.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_mts_mto_rule%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
Credits
=======
Authors
~~~~~~~
* Akretion
Contributors
~~~~~~~~~~~~
* Florian da Costa <florian.dacosta@akretion.com>
* Jared Kipe <jared@hibou.io>
* Alan Ramos <alan.ramos@jarsa.com.mx>
Maintainers
~~~~~~~~~~~
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_mts_mto_rule>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -0,0 +1 @@
from . import models

View File

@@ -0,0 +1,16 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Stock MTS+MTO Rule",
"summary": "Add a MTS+MTO route",
"version": "16.0.1.0.0",
"development_status": "Mature",
"category": "Warehouse",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"author": "Akretion,Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["stock"],
"data": ["data/stock_data.xml", "view/pull_rule.xml", "view/warehouse.xml"],
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!--
Procurement rules
-->
<record id="route_mto_mts" model='stock.route'>
<field name="name">Make To Order + Make To Stock</field>
<field name="sequence">5</field>
<field name="product_selectable" eval="True" />
</record>
</odoo>

View File

@@ -0,0 +1,101 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# Lukáš Spurný <lukasspurny8@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-27 11:37+0000\n"
"PO-Revision-Date: 2018-02-27 11:37+0000\n"
"Last-Translator: Lukáš Spurný <lukasspurny8@gmail.com>, 2018\n"
"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/"
"teams/23907/cs_CZ/)\n"
"Language: cs_CZ\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr ""
#~ msgid "Procurement Rule"
#~ msgstr "Pravidlo zadávání zakázek"
#~ msgid "Procurement"
#~ msgstr "Zakázka"

View File

@@ -0,0 +1,119 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-30 03:53+0000\n"
"PO-Revision-Date: 2017-11-30 03:53+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr "Wähle aus MTO und MTS"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
"Wird diese neue Route in der Produktdetailsicht gewählt, wird eine "
"Beschaffung nur dann bewirkt, wenn der Planbestand unter 0 fällt, "
"anderenfalls wird das Produkt aus dem Bestand genommen."
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr "MTO-Regel"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr "MTO+MTS-Regel"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr "MTS-Regel"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr "MTS+MTO"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr "MTO Auftragsfertigung + MTS Lagerfertigung"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
#, fuzzy
msgid "Stock Rule"
msgstr "MTS-Regel"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr "Verwende MTO+MTS-Regeln"
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr "Lager"
#~ msgid "Can't find MTO Rule on the warehouse"
#~ msgstr "Kann MTO-Regel zum Lager nicht finden"
#~ msgid "Can't find MTS Rule on the warehouse"
#~ msgstr "Kann MTS-Regel zum Lager nicht finden"
#~ msgid "Can't find any generic MTS+MTO route."
#~ msgstr "Kann keine allg. MTO- oder MTS-Route finden"
#~ msgid "Procurement Rule"
#~ msgstr "Beschaffungsregel"
#~ msgid "Mto+Mts Procurement"
#~ msgstr "MTO+MTS-Beschaffung"
#~ msgid "Procurement"
#~ msgstr "Beschaffung"
#~ msgid "Procurements"
#~ msgstr "Beschaffungen"

View File

@@ -0,0 +1,122 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Pedro M. Baeza <pedro.baeza@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-30 03:53+0000\n"
"PO-Revision-Date: 2017-11-30 03:53+0000\n"
"Last-Translator: Pedro M. Baeza <pedro.baeza@gmail.com>, 2017\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr "Escoja entre \"bajo existencias\" o \"bajo pedido\""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
"Si se selecciona esta nueva ruta en la vista formulario de producto, se "
"creará un pedido de compra sólo si la cantidad virtual es menor de 0. Si no, "
"se cogerá el producto desde existencias."
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr "Regla \"bajo pedido\""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr "Regla MTO+MTS"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr "Regla \"bajo existencias\""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr "MTS+MTO"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr "Bajo pedido + bajo existencias"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
#, fuzzy
msgid "Stock Rule"
msgstr "Regla \"bajo existencias\""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr "Usar reglas MTO+MTS"
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr "Almacén"
#~ msgid "Can't find MTO Rule on the warehouse"
#~ msgstr "No se puede encontrar un regla \"bajo pedido\" en el almacén"
#~ msgid "Can't find MTS Rule on the warehouse"
#~ msgstr "No se puede encontrar una regla \"bajo existencias\" en el almacén"
#~ msgid "Can't find any generic MTS+MTO route."
#~ msgstr ""
#~ "No se puede encontrar una regla genérica MTS+MTO - \"bajo existencias"
#~ "+bajo pedido\"."
#~ msgid "Procurement Rule"
#~ msgstr "Regla de abastecimiento"
#~ msgid "Mto+Mts Procurement"
#~ msgstr "Abastecimiento MTO+MTS"
#~ msgid "Procurement"
#~ msgstr "Abastecimiento"
#~ msgid "Procurements"
#~ msgstr "Abastecimientos"

View File

@@ -0,0 +1,98 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-28 02:58+0000\n"
"PO-Revision-Date: 2017-07-28 02:58+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/"
"es_MX/)\n"
"Language: es_MX\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr ""
#~ msgid "Procurement"
#~ msgstr "Contratación"

View File

@@ -0,0 +1,123 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Quentin THEURET <odoo@kerpeo.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-27 11:37+0000\n"
"PO-Revision-Date: 2018-02-27 11:37+0000\n"
"Last-Translator: Quentin THEURET <odoo@kerpeo.com>, 2018\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr ""
"Choisir entre MTS(Make To Stock: Produit géré en stock) et MTO(Make To "
"Order: Produit fabriqué à la commande). "
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
"Si cette nouvelle route est sélectionnée sur la vue formulaire du produit, "
"une commande d'achat sera créée seulement si le stock virtuel est inférieur "
"à 0, sinon, le produit sera pris en stock."
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr "MTO (Fab. à la demande)"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr "MTS: Produit stocké"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
#, fuzzy
msgid "Stock Rule"
msgstr "MTS: Produit stocké"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr "Entrepôt"
#~ msgid "Can't find MTO Rule on the warehouse"
#~ msgstr ""
#~ "Ne trouve pas la règle MTO (Make To Order: Fabrication à la commande) de "
#~ "l'entrepôt"
#~ msgid "Can't find MTS Rule on the warehouse"
#~ msgstr ""
#~ "Ne trouve pas la règle MTS (Make To Stock: produit géré en stock) de "
#~ "l'entrepôt"
#~ msgid "Can't find any generic MTS+MTO route."
#~ msgstr "Aucune règle par défaut MTS+MTO configurée. "
#~ msgid "Procurement Rule"
#~ msgstr "Règle d'approvisionnement"
#~ msgid "Procurement"
#~ msgstr "Procurement"
#~ msgid "Procurements"
#~ msgstr "Approvisionnements"

View File

@@ -0,0 +1,96 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-28 02:58+0000\n"
"PO-Revision-Date: 2019-07-02 10:43+0000\n"
"Last-Translator: Julien Thomazeau <julien.thomazeau@protonmail.com>\n"
"Language-Team: French (France) (https://www.transifex.com/oca/teams/23907/"
"fr_FR/)\n"
"Language: fr_FR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 3.7.1\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr "Production à la demande + Production sur stock"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr "Entrepôt "

View File

@@ -0,0 +1,118 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Bole <bole@dajmi5.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-27 11:37+0000\n"
"PO-Revision-Date: 2018-02-27 11:37+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2018\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr "Izaberite između MTO i MTS pravila"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr "MTO pravilo"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr "MTO+MTS pravilo"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr "MTS pravilo"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr "MTS+MTO"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr "Make To Order + Make To Stock"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
#, fuzzy
msgid "Stock Rule"
msgstr "MTS pravilo"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr "Koristi MTO+MTS pravila"
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr "Skladište"
#~ msgid "Can't find MTO Rule on the warehouse"
#~ msgstr "Nemogu naći MTO pravilo na skladištu"
#~ msgid "Can't find MTS Rule on the warehouse"
#~ msgstr "Nemogu naći MTO pravilo na skladištu"
#~ msgid "Can't find any generic MTS+MTO route."
#~ msgstr "Nemogu naći nijedno generičko MTO+MTS pravilo."
#~ msgid "Procurement Rule"
#~ msgstr "Pavilo nabave"
#~ msgid "Mto+Mts Procurement"
#~ msgstr "Mto+Mts Nabava"
#~ msgid "Procurement"
#~ msgstr "Nabava"
#~ msgid "Procurements"
#~ msgstr "Nabave"

View File

@@ -0,0 +1,100 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-28 02:58+0000\n"
"PO-Revision-Date: 2017-07-28 02:58+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr "Magazzino"
#~ msgid "Procurement Rule"
#~ msgstr "Regola d'Approvvigionamento"
#~ msgid "Procurement"
#~ msgstr "Approvvigionamento"

View File

@@ -0,0 +1,94 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-28 02:58+0000\n"
"PO-Revision-Date: 2017-07-28 02:58+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr "Magazijn"

View File

@@ -0,0 +1,95 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# Peter Hageman <hageman.p@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-23 00:57+0000\n"
"PO-Revision-Date: 2017-06-23 00:57+0000\n"
"Last-Translator: Peter Hageman <hageman.p@gmail.com>, 2017\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
"teams/23907/nl_NL/)\n"
"Language: nl_NL\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr "Kies tussen MTS en MTO"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr "MTO Regel"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr "Op Order + Op Voorrad"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr "Magazijn"

View File

@@ -0,0 +1,98 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-28 02:58+0000\n"
"PO-Revision-Date: 2017-07-28 02:58+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/"
"teams/23907/pt_BR/)\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr "Armazém"
#~ msgid "Procurement"
#~ msgstr "Aprovisionamento"

View File

@@ -0,0 +1,98 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-27 11:37+0000\n"
"PO-Revision-Date: 2018-02-27 11:37+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2018\n"
"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/"
"teams/23907/pt_PT/)\n"
"Language: pt_PT\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr ""
#~ msgid "Procurement"
#~ msgstr "Aquisições"

View File

@@ -0,0 +1,98 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-28 02:58+0000\n"
"PO-Revision-Date: 2017-07-28 02:58+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n"
"Language: ro\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?"
"2:1));\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr ""
#~ msgid "Procurement"
#~ msgstr "Aprovizionare"

View File

@@ -0,0 +1,97 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-27 11:37+0000\n"
"PO-Revision-Date: 2018-02-27 11:37+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2018\n"
"Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/sk/)\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr ""
#~ msgid "Procurement"
#~ msgstr "Obstarávanie"

View File

@@ -0,0 +1,120 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-31 08:35+0000\n"
"PO-Revision-Date: 2020-08-11 10:59+0000\n"
"Last-Translator: Matjaz Mozetic <matjaz@matmoz.si>\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
"%100==4 ? 2 : 3;\n"
"X-Generator: Weblate 3.10\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr "Izbira med 'Na zalogo' in 'Po naročilu'"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
"Če je na prikazu obrazca proizvoda izbrana ta proga, se nabavni nalog "
"ustvari le, če je navidezna zaloga manj od 0. V nasprotnem primeru se "
"proizvod vzame iz zaloge"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr "Pravilo 'Po naročilu'"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr "Pravilo 'Po naročilu' + 'Na zalogo'"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr "Pravilo 'Na zalogo'"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr "Na zalogo + Po naročilu"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr "Naredi po naročilu + Naredi na zalogo"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr "Pravilo zalog"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr "Uporabi pravila Po naročilu + Na zalogo"
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr "Skladišče"
#~ msgid "Can't find MTO Rule on the warehouse"
#~ msgstr "Za skladišče ni pravila 'po naročilu'"
#~ msgid "Can't find MTS Rule on the warehouse"
#~ msgstr "Za skladišče ni pravila 'na zalogo'"
#~ msgid "Can't find any generic MTS+MTO route."
#~ msgstr "Ni generične proge 'na zalogo' + 'po naročilu'"
#~ msgid "Procurement Rule"
#~ msgstr "Oskrbovalno pravilo"
#~ msgid "Mto+Mts Procurement"
#~ msgstr "Oskrbovanja 'po naročilu'+'na zalogo'"
#~ msgid "Procurement"
#~ msgstr "Oskrbovanje"
#~ msgid "Procurements"
#~ msgstr "Oskrbovanja"

View File

@@ -0,0 +1,89 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be"
" created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr ""

View File

@@ -0,0 +1,98 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-27 11:37+0000\n"
"PO-Revision-Date: 2018-02-27 11:37+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2018\n"
"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/"
"tr_TR/)\n"
"Language: tr_TR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr ""
#~ msgid "Procurement"
#~ msgstr "Satın alma"

View File

@@ -0,0 +1,98 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-28 02:58+0000\n"
"PO-Revision-Date: 2017-07-28 02:58+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/"
"teams/23907/vi_VN/)\n"
"Language: vi_VN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr ""
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr ""
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr ""
#~ msgid "Procurement"
#~ msgstr "Mua sắm / Cung ứng"

View File

@@ -0,0 +1,116 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_mts_mto_rule
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-28 02:58+0000\n"
"PO-Revision-Date: 2019-10-10 17:37+0000\n"
"Last-Translator: 黎伟杰 <674416404@qq.com>\n"
"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/"
"zh_CN/)\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 3.8\n"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__action
msgid "Action"
msgstr "动作"
#. module: stock_mts_mto_rule
#: model:ir.model.fields.selection,name:stock_mts_mto_rule.selection__stock_rule__action__split_procurement
msgid "Choose between MTS and MTO"
msgstr "在MTS和MTO之间选择"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,help:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid ""
"If this new route is selected on product form view, a purchase order will be "
"created only if the virtual stock is less than 0 else, the product will be "
"taken from stocks"
msgstr ""
"如果在产品表单视图中选择了此新路线则仅当虚拟库存小于0时才创建采购订单否则"
"将从库存中提取产品"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid ""
"Inconsistency between the source locations of the mts and mto rules linked "
"to the procurement rule: %s! It should be the same."
msgstr "链接到采购规则的MTS和MTO规则的源位置不一致%s应该是一样的。"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mto_rule_id
msgid "MTO Rule"
msgstr "MTO规则"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mts_mto_rule_id
msgid "MTO+MTS rule"
msgstr "MTO+MTS 规则"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_rule__mts_rule_id
msgid "MTS Rule"
msgstr "MTS规则"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#, python-format
msgid "MTS+MTO"
msgstr "MTS+MTO"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_warehouse.py:0
#: model:stock.location.route,name:stock_mts_mto_rule.route_mto_mts
#, python-format
msgid "Make To Order + Make To Stock"
msgstr "按订单生产+按库存生产"
#. module: stock_mts_mto_rule
#: code:addons/stock_mts_mto_rule/models/stock_rule.py:0
#, python-format
msgid "No MTS or MTO rule configured on procurement rule: %s!"
msgstr "采购规则上未配置MTS或MTO规则%s"
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_rule
msgid "Stock Rule"
msgstr "库存规则"
#. module: stock_mts_mto_rule
#: model:ir.model.fields,field_description:stock_mts_mto_rule.field_stock_warehouse__mto_mts_management
msgid "Use MTO+MTS rules"
msgstr "使用MTO+MTS规则"
#. module: stock_mts_mto_rule
#: model:ir.model,name:stock_mts_mto_rule.model_stock_warehouse
msgid "Warehouse"
msgstr "仓库"
#~ msgid "Buy"
#~ msgstr "购买"
#~ msgid "Manufacture"
#~ msgstr "制造"
#~ msgid "Pull & Push"
#~ msgstr "推拉"
#~ msgid "Pull From"
#~ msgstr "拉"
#~ msgid "Push To"
#~ msgstr "推"
#~ msgid "Procurement"
#~ msgstr "补货"

View File

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

View File

@@ -0,0 +1,107 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
from odoo.osv import expression
from odoo.tools import float_compare, float_is_zero
class StockRule(models.Model):
_inherit = "stock.rule"
action = fields.Selection(
selection_add=[("split_procurement", "Choose between MTS and MTO")],
ondelete={"split_procurement": "cascade"},
)
mts_rule_id = fields.Many2one("stock.rule", string="MTS Rule", check_company=True)
mto_rule_id = fields.Many2one("stock.rule", string="MTO Rule", check_company=True)
@api.constrains("action", "mts_rule_id", "mto_rule_id")
def _check_mts_mto_rule(self):
for rule in self:
if rule.action == "split_procurement":
if not rule.mts_rule_id or not rule.mto_rule_id:
msg = _(
"No MTS or MTO rule configured on procurement " "rule: %s!"
) % (rule.name,)
raise ValidationError(msg)
if (
rule.mts_rule_id.location_src_id.id
!= rule.mto_rule_id.location_src_id.id
):
msg = _(
"Inconsistency between the source locations of "
"the mts and mto rules linked to the procurement "
"rule: %s! It should be the same."
) % (rule.name,)
raise ValidationError(msg)
def get_mto_qty_to_order(self, product, product_qty, product_uom, values):
self.ensure_one()
precision = self.env["decimal.precision"].precision_get(
"Product Unit of Measure"
)
src_location_id = self.mts_rule_id.location_src_id.id
product_location = product.with_context(location=src_location_id)
virtual_available = product_location.virtual_available
qty_available = product.uom_id._compute_quantity(virtual_available, product_uom)
if float_compare(qty_available, 0.0, precision_digits=precision) > 0:
if (
float_compare(qty_available, product_qty, precision_digits=precision)
>= 0
):
return 0.0
else:
return product_qty - qty_available
return product_qty
def _run_split_procurement(self, procurements):
precision = self.env["decimal.precision"].precision_get(
"Product Unit of Measure"
)
for procurement, rule in procurements:
domain = self.env["procurement.group"]._get_moves_to_assign_domain(
procurement.company_id.id
)
needed_qty = rule.get_mto_qty_to_order(
procurement.product_id,
procurement.product_qty,
procurement.product_uom,
procurement.values,
)
if float_is_zero(needed_qty, precision_digits=precision):
getattr(self.env["stock.rule"], "_run_%s" % rule.mts_rule_id.action)(
[(procurement, rule.mts_rule_id)]
)
elif (
float_compare(
needed_qty, procurement.product_qty, precision_digits=precision
)
== 0.0
):
getattr(self.env["stock.rule"], "_run_%s" % rule.mto_rule_id.action)(
[(procurement, rule.mto_rule_id)]
)
else:
mts_qty = procurement.product_qty - needed_qty
mts_procurement = procurement._replace(product_qty=mts_qty)
getattr(self.env["stock.rule"], "_run_%s" % rule.mts_rule_id.action)(
[(mts_procurement, rule.mts_rule_id)]
)
# Search all confirmed stock_moves of mts_procuremet and assign them
# to adjust the product's free qty
group_id = mts_procurement.values.get("group_id")
group_domain = expression.AND(
[domain, [("group_id", "=", group_id.id)]]
)
moves_to_assign = self.env["stock.move"].search(
group_domain, order="priority desc, date asc"
)
moves_to_assign._action_assign()
mto_procurement = procurement._replace(product_qty=needed_qty)
getattr(self.env["stock.rule"], "_run_%s" % rule.mto_rule_id.action)(
[(mto_procurement, rule.mto_rule_id)]
)
return True

View File

@@ -0,0 +1,104 @@
# 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", check_company=True)
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_cancel": 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_dest_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_dest_id", "=", self.mts_mto_rule_id.location_dest_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

@@ -0,0 +1,10 @@
You have to select 'Use MTO+MTS rules' on the company's warehouse form.
Known issues
============
If you cancel a delivery order and then recreate it from Recreate
Delivery Order button in sale order form, then the stock level at the time of
the Re-Creation won't be taken into account. So if a purchase order was created
when the sale order was first validated, a similar purchase order will be created
during the Re-creation of the delivery order, even if not needed regarding the actual stock.

View File

@@ -0,0 +1,3 @@
* Florian da Costa <florian.dacosta@akretion.com>
* Jared Kipe <jared@hibou.io>
* Alan Ramos <alan.ramos@jarsa.com.mx>

View File

@@ -0,0 +1,27 @@
This module add a Make To Stock + Make to Order Route.
If you choose the make to stock + make to order rule instead of the make to
order route, the creation of a purchase order will depend on the virtual stock.
There are 3 cases :
1. The virtual stock of the product is 0
=> It will act exactly like the make to order route.
2. The virtual stock is equal to the quantity ordered
=> It will act exactly like a make to stock route
3. The virtual stock is more than 0 but less than ordered quantity
=> On part of the products will be taken from stock and a purchase order
will be created for the rest. So it will act like both make to order and
make to stock rule.
Example :
We have a virtual stock of : 1 product A
A sale Order is made for 3 products A.
2 Procurements will be created :
1. 1 with a make to stock rule and a quantity of 1
2. 1 with a make to order rule and a quantity of 2.
After validation, a purchase order with 2 products will be created.

View File

@@ -0,0 +1,2 @@
You have to select the mts+mto route on the product form.
You should not select both the mts+mto route and the mto route.

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -0,0 +1,475 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<title>Stock MTS+MTO Rule</title>
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/
/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
border: 0 }
table.borderless td, table.borderless th {
/* Override padding for "table.docutils td" with "! important".
The right padding separates the table cells. */
padding: 0 0.5em 0 0 ! important }
.first {
/* Override more specific margin styles with "! important". */
margin-top: 0 ! important }
.last, .with-subtitle {
margin-bottom: 0 ! important }
.hidden {
display: none }
.subscript {
vertical-align: sub;
font-size: smaller }
.superscript {
vertical-align: super;
font-size: smaller }
a.toc-backref {
text-decoration: none ;
color: black }
blockquote.epigraph {
margin: 2em 5em ; }
dl.docutils dd {
margin-bottom: 0.5em }
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
overflow: hidden;
}
/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
font-weight: bold }
*/
div.abstract {
margin: 2em 5em }
div.abstract p.topic-title {
font-weight: bold ;
text-align: center }
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
margin: 2em ;
border: medium outset ;
padding: 1em }
div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
font-weight: bold ;
font-family: sans-serif }
div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
color: red ;
font-weight: bold ;
font-family: sans-serif }
/* Uncomment (and remove this text!) to get reduced vertical space in
compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
margin-bottom: 0.5em }
div.compound .compound-last, div.compound .compound-middle {
margin-top: 0.5em }
*/
div.dedication {
margin: 2em 5em ;
text-align: center ;
font-style: italic }
div.dedication p.topic-title {
font-weight: bold ;
font-style: normal }
div.figure {
margin-left: 2em ;
margin-right: 2em }
div.footer, div.header {
clear: both;
font-size: smaller }
div.line-block {
display: block ;
margin-top: 1em ;
margin-bottom: 1em }
div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-left: 1.5em }
div.sidebar {
margin: 0 0 0.5em 1em ;
border: medium outset ;
padding: 1em ;
background-color: #ffffee ;
width: 40% ;
float: right ;
clear: right }
div.sidebar p.rubric {
font-family: sans-serif ;
font-size: medium }
div.system-messages {
margin: 5em }
div.system-messages h1 {
color: red }
div.system-message {
border: medium outset ;
padding: 1em }
div.system-message p.system-message-title {
color: red ;
font-weight: bold }
div.topic {
margin: 2em }
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
margin-top: 0.4em }
h1.title {
text-align: center }
h2.subtitle {
text-align: center }
hr.docutils {
width: 75% }
img.align-left, .figure.align-left, object.align-left, table.align-left {
clear: left ;
float: left ;
margin-right: 1em }
img.align-right, .figure.align-right, object.align-right, table.align-right {
clear: right ;
float: right ;
margin-left: 1em }
img.align-center, .figure.align-center, object.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
table.align-center {
margin-left: auto;
margin-right: auto;
}
.align-left {
text-align: left }
.align-center {
clear: both ;
text-align: center }
.align-right {
text-align: right }
/* reset inner alignment in figures */
div.align-right {
text-align: inherit }
/* div.align-center * { */
/* text-align: left } */
.align-top {
vertical-align: top }
.align-middle {
vertical-align: middle }
.align-bottom {
vertical-align: bottom }
ol.simple, ul.simple {
margin-bottom: 1em }
ol.arabic {
list-style: decimal }
ol.loweralpha {
list-style: lower-alpha }
ol.upperalpha {
list-style: upper-alpha }
ol.lowerroman {
list-style: lower-roman }
ol.upperroman {
list-style: upper-roman }
p.attribution {
text-align: right ;
margin-left: 50% }
p.caption {
font-style: italic }
p.credits {
font-style: italic ;
font-size: smaller }
p.label {
white-space: nowrap }
p.rubric {
font-weight: bold ;
font-size: larger ;
color: maroon ;
text-align: center }
p.sidebar-title {
font-family: sans-serif ;
font-weight: bold ;
font-size: larger }
p.sidebar-subtitle {
font-family: sans-serif ;
font-weight: bold }
p.topic-title {
font-weight: bold }
pre.address {
margin-bottom: 0 ;
margin-top: 0 ;
font: inherit }
pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}
span.classifier {
font-family: sans-serif ;
font-style: oblique }
span.classifier-delimiter {
font-family: sans-serif ;
font-weight: bold }
span.interpreted {
font-family: sans-serif }
span.option {
white-space: nowrap }
span.pre {
white-space: pre }
span.problematic {
color: red }
span.section-subtitle {
/* font-size relative to parent (h1..h6 element) */
font-size: 80% }
table.citation {
border-left: solid 1px gray;
margin-left: 1px }
table.docinfo {
margin: 2em 4em }
table.docutils {
margin-top: 0.5em ;
margin-bottom: 0.5em }
table.footnote {
border-left: solid 1px black;
margin-left: 1px }
table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
padding-left: 0.5em ;
padding-right: 0.5em ;
vertical-align: top }
table.docutils th.field-name, table.docinfo th.docinfo-name {
font-weight: bold ;
text-align: left ;
white-space: nowrap ;
padding-left: 0 }
/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
border: 0px;
border-top: 2px solid;
border-bottom: 2px solid;
border-collapse: collapse;
}
table.docutils.booktabs * {
border: 0px;
}
table.docutils.booktabs th {
border-bottom: thin solid;
text-align: left;
}
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
font-size: 100% }
ul.auto-toc {
list-style-type: none }
</style>
</head>
<body>
<div class="document" id="stock-mts-mto-rule">
<h1 class="title">Stock MTS+MTO Rule</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_mts_mto_rule"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-15-0/stock-logistics-warehouse-15-0-stock_mts_mto_rule"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/153/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module add a Make To Stock + Make to Order Route.</p>
<p>If you choose the make to stock + make to order rule instead of the make to
order route, the creation of a purchase order will depend on the virtual stock.
There are 3 cases :</p>
<ol class="arabic simple">
<li><dl class="first docutils">
<dt>The virtual stock of the product is 0</dt>
<dd>=&gt; It will act exactly like the make to order route.</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt>The virtual stock is equal to the quantity ordered</dt>
<dd>=&gt; It will act exactly like a make to stock route</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt>The virtual stock is more than 0 but less than ordered quantity</dt>
<dd><dl class="first last docutils">
<dt>=&gt; On part of the products will be taken from stock and a purchase order</dt>
<dd>will be created for the rest. So it will act like both make to order and
make to stock rule.</dd>
</dl>
</dd>
</dl>
</li>
</ol>
<p>Example :
We have a virtual stock of : 1 product A
A sale Order is made for 3 products A.
2 Procurements will be created :</p>
<ol class="arabic simple">
<li>1 with a make to stock rule and a quantity of 1</li>
<li>1 with a make to order rule and a quantity of 2.</li>
</ol>
<p>After validation, a purchase order with 2 products will be created.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li>
<li><a class="reference internal" href="#known-issues" id="id2">Known issues</a></li>
<li><a class="reference internal" href="#usage" id="id3">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="id4">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="id5">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="id6">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="id7">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="id8">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#id1">Configuration</a></h1>
<p>You have to select Use MTO+MTS rules on the companys warehouse form.</p>
</div>
<div class="section" id="known-issues">
<h1><a class="toc-backref" href="#id2">Known issues</a></h1>
<p>If you cancel a delivery order and then recreate it from Recreate
Delivery Order button in sale order form, then the stock level at the time of
the Re-Creation wont be taken into account. So if a purchase order was created
when the sale order was first validated, a similar purchase order will be created
during the Re-creation of the delivery order, even if not needed regarding the actual stock.</p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id3">Usage</a></h1>
<p>You have to select the mts+mto route on the product form.
You should not select both the mts+mto route and the mto route.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id4">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_mts_mto_rule%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#id5">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#id6">Authors</a></h2>
<ul class="simple">
<li>Akretion</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#id7">Contributors</a></h2>
<ul class="simple">
<li>Florian da Costa &lt;<a class="reference external" href="mailto:florian.dacosta&#64;akretion.com">florian.dacosta&#64;akretion.com</a>&gt;</li>
<li>Jared Kipe &lt;<a class="reference external" href="mailto:jared&#64;hibou.io">jared&#64;hibou.io</a>&gt;</li>
<li>Alan Ramos &lt;<a class="reference external" href="mailto:alan.ramos&#64;jarsa.com.mx">alan.ramos&#64;jarsa.com.mx</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#id8">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_mts_mto_rule">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1 @@
from . import test_mto_mts_route

View File

@@ -0,0 +1,247 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import exceptions
from odoo.tests.common import TransactionCase
class TestMtoMtsRoute(TransactionCase):
def _create_quant(self, qty):
self.quant = self.env["stock.quant"].create(
{
"owner_id": self.company_partner.id,
"location_id": self.env.ref("stock.stock_location_stock").id,
"product_id": self.product.id,
"quantity": qty,
}
)
def test_standard_mto_route(self):
mto_route = self.env.ref("stock.route_warehouse0_mto")
mto_route.active = True
self.product.route_ids = [(6, 0, [mto_route.id])]
self.env["procurement.group"].run(
[
self.group.Procurement(
self.product,
2.0,
self.uom,
self.customer_loc,
self.product.name,
"test",
self.warehouse.company_id,
self.procurement_vals,
)
]
)
moves = self.move_obj.search([("group_id", "=", self.group.id)])
self.assertEqual(len(moves), 2)
def test_standard_mts_route(self):
self.env["procurement.group"].run(
[
self.group.Procurement(
self.product,
2.0,
self.uom,
self.customer_loc,
self.product.name,
"test",
self.warehouse.company_id,
self.procurement_vals,
)
]
)
moves = self.move_obj.search([("group_id", "=", self.group.id)])
self.assertEqual(len(moves), 1)
def test_mts_mto_route_split(self):
mto_mts_route = self.env.ref("stock_mts_mto_rule.route_mto_mts")
self.product.route_ids = [(6, 0, [mto_mts_route.id])]
self._create_quant(1.0)
self.env["procurement.group"].run(
[
self.group.Procurement(
self.product,
2.0,
self.uom,
self.customer_loc,
self.product.name,
"test",
self.warehouse.company_id,
self.procurement_vals,
)
]
)
moves = self.env["stock.move"].search([("group_id", "=", self.group.id)])
self.assertEqual(3, len(moves))
move_mts = self.env["stock.move"].search(
[
("group_id", "=", self.group.id),
("location_dest_id", "=", self.customer_loc.id),
("procure_method", "=", "make_to_stock"),
]
)
self.assertEqual(1, len(move_mts))
self.assertEqual(1.0, move_mts.product_uom_qty)
self.assertEqual("assigned", move_mts.state)
move_mto = self.env["stock.move"].search(
[
("group_id", "=", self.group.id),
("location_dest_id", "=", self.customer_loc.id),
("procure_method", "=", "make_to_order"),
]
)
self.assertEqual(1, len(move_mto))
self.assertEqual("waiting", move_mto.state)
def test_mts_mto_route_mto_only(self):
mto_mts_route = self.env.ref("stock_mts_mto_rule.route_mto_mts")
self.product.route_ids = [(6, 0, [mto_mts_route.id])]
self.env["procurement.group"].run(
[
self.group.Procurement(
self.product,
2.0,
self.uom,
self.customer_loc,
self.product.name,
"test",
self.warehouse.company_id,
self.procurement_vals,
)
]
)
moves = self.env["stock.move"].search(
[
("group_id", "=", self.group.id),
("location_dest_id", "=", self.customer_loc.id),
]
)
self.assertEqual(1, len(moves))
self.assertEqual(2.0, moves[0].product_uom_qty)
self.assertEqual("make_to_order", moves[0].procure_method)
def test_mts_mto_route_mts_only(self):
mto_mts_route = self.env.ref("stock_mts_mto_rule.route_mto_mts")
self.product.route_ids = [(6, 0, [mto_mts_route.id])]
self._create_quant(3.0)
self.env["procurement.group"].run(
[
self.group.Procurement(
self.product,
2.0,
self.uom,
self.customer_loc,
self.product.name,
"test",
self.warehouse.company_id,
self.procurement_vals,
)
]
)
moves = self.env["stock.move"].search([("group_id", "=", self.group.id)])
self.assertEqual(1, len(moves))
self.assertEqual(2.0, moves[0].product_uom_qty)
self.assertEqual("make_to_stock", moves[0].procure_method)
def test_mts_mto_rule_contrains(self):
rule = self.env["stock.rule"].search(
[("action", "=", "split_procurement")], limit=1
)
with self.assertRaises(exceptions.ValidationError):
rule.write({"mts_rule_id": False})
with self.assertRaises(exceptions.ValidationError):
rule.write({"mts_rule_id": self.dummy_rule.id})
def test_mts_mto_route_mto_removed(self):
self.env.ref("stock_mts_mto_rule.route_mto_mts").unlink()
with self.assertRaises(exceptions.UserError):
# mts_mto_rule_id is checked as a global rule
self.warehouse.mts_mto_rule_id = False
def test_mts_mto_route_mts_removed(self):
self.warehouse.mto_mts_management = True
rules = self.env["stock.rule"].search(
[
("location_src_id", "=", self.warehouse.lot_stock_id.id),
("route_id", "=", self.warehouse.delivery_route_id.id),
]
)
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.mto_mts_management = True
self.assertTrue(self.warehouse.mts_mto_rule_id)
def test_mts_mto_route_mto_no_mts_rule(self):
self.warehouse.mts_mto_rule_id = False
self.warehouse.mto_pull_id = False
self.warehouse.mto_mts_management = True
self.assertTrue(self.warehouse.mts_mto_rule_id)
def test_create_routes(self):
self.warehouse._create_or_update_route()
mts_mto_route = self.warehouse.mts_mto_rule_id
self.assertEqual(mts_mto_route.warehouse_id, self.warehouse)
self.assertEqual(
mts_mto_route.location_dest_id, self.warehouse.mto_pull_id.location_dest_id
)
self.assertEqual(
mts_mto_route.picking_type_id, self.warehouse.mto_pull_id.picking_type_id
)
self.assertEqual(
mts_mto_route.route_id, self.env.ref("stock_mts_mto_rule.route_mto_mts")
)
def test_remove_mts_mto_management(self):
warehouse_rule = self.warehouse.mts_mto_rule_id
self.assertTrue(self.warehouse.mts_mto_rule_id)
self.warehouse.mto_mts_management = False
self.assertFalse(warehouse_rule.active)
def test_get_all_routes_for_wh(self):
routes = self.warehouse._get_all_routes()
self.assertTrue(self.warehouse.mts_mto_rule_id)
self.assertTrue(self.warehouse.mts_mto_rule_id.route_id in routes)
def test_rename_warehouse(self):
rule_name = self.warehouse.mts_mto_rule_id.name
new_warehouse_name = "NewName"
new_rule_name = rule_name.replace(self.warehouse.name, new_warehouse_name, 1)
self.warehouse.name = new_warehouse_name
self.assertEqual(new_rule_name, self.warehouse.mts_mto_rule_id.name)
def setUp(self):
super(TestMtoMtsRoute, self).setUp()
self.move_obj = self.env["stock.move"]
self.warehouse = self.env.ref("stock.warehouse0")
self.uom = self.env["uom.uom"].browse(1)
self.warehouse.mto_mts_management = True
self.customer_loc = self.env.ref("stock.stock_location_customers")
self.product = self.env["product.product"].create(
{"name": "Test product", "type": "product"}
)
self.company_partner = self.env.ref("base.main_partner")
self.group = self.env["procurement.group"].create({"name": "test"})
self.procurement_vals = {"warehouse_id": self.warehouse, "group_id": self.group}
# Since mrp and purchase modules may not be installed, we need to
# create a dummy step to show that mts, mto, and mts+mto flows work.
# Else, if purchase/manufacture are not installed, the mto would fail.
route_vals = {
"warehouse_selectable": True,
"name": "dummy route",
}
self.dummy_route = self.env["stock.route"].create(route_vals)
rule_vals = {
"location_dest_id": self.env.ref("stock.stock_location_stock").id,
"location_src_id": self.env.ref("stock.stock_location_suppliers").id,
"action": "pull",
"warehouse_id": self.warehouse.id,
"picking_type_id": self.env.ref("stock.picking_type_out").id,
"name": "dummy rule",
"route_id": self.dummy_route.id,
}
self.dummy_rule = self.env["stock.rule"].create(rule_vals)
self.warehouse.write({"route_ids": [(4, self.dummy_route.id)]})

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="stock_location_route_form_view_mto_mto" model="ir.ui.view">
<field name="name">stock.route.form.mts.mto</field>
<field name="model">stock.route</field>
<field name="inherit_id" ref="stock.stock_location_route_form_view" />
<field name="arch" type="xml">
<field name="action" position="after">
<field
name="mts_rule_id"
groups="stock.group_adv_location"
attrs="{'invisible': [('action', '!=', 'split_procurement')]}"
/>
<field
name="mto_rule_id"
groups="stock.group_adv_location"
attrs="{'invisible': [('action', '!=', 'split_procurement')]}"
/>
</field>
</field>
</record>
<record id="view_stock_rule_form_view_mto_mto" model="ir.ui.view">
<field name="name">stock.rule.form.mts.mto</field>
<field name="model">stock.rule</field>
<field name="inherit_id" ref="stock.view_stock_rule_form" />
<field name="arch" type="xml">
<field name="action" position="after">
<field
name="mts_rule_id"
groups="stock.group_adv_location"
attrs="{'invisible': [('action', '!=', 'split_procurement')]}"
/>
<field
name="mto_rule_id"
groups="stock.group_adv_location"
attrs="{'invisible': [('action', '!=', 'split_procurement')]}"
/>
</field>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_warehouse_inherited" model="ir.ui.view">
<field name="name">view_warehouse_inherited</field>
<field name="model">stock.warehouse</field>
<field name="inherit_id" ref="stock.view_warehouse" />
<field name="arch" type="xml">
<xpath expr="//field[@name='delivery_steps']" position="after">
<field name="mto_mts_management" />
</xpath>
</field>
</record>
</odoo>