mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[12.0][MIG] stock_picking_procure_method
This commit is contained in:
@@ -14,13 +14,13 @@ Stock Picking Procure Method
|
||||
: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/11.0/stock_picking_procure_method
|
||||
:target: https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_picking_procure_method
|
||||
: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-11-0/stock-logistics-warehouse-11-0-stock_picking_procure_method
|
||||
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_picking_procure_method
|
||||
: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/11.0
|
||||
:target: https://runbot.odoo-community.org/runbot/153/12.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
@@ -52,21 +52,20 @@ Common steps to `mrp` and `purchase` procurements:
|
||||
#. Go to *Inventory > Configuration > Settings > Warehouse* and set *Multi-Step
|
||||
Routes* on.
|
||||
#. Go to *Inventory > Configuration > Warehouse Management > Warehouses*
|
||||
#. Create **WH1** with either *Manufacture in this Warehouse* or *Purchase to
|
||||
resupply this warehouse* or both set.
|
||||
#. Create **WH2** setting off *Manufacture in this Warehouse* and *Purchase to
|
||||
resupply this warehouse*. Set **WH1** as the *Resupply Warehouse*.
|
||||
#. Create **WH1** with either *Manufacture to Resupply* or *Buy to
|
||||
Resupply* this warehouse or both set.
|
||||
#. Create **WH2** setting off *Manufacture to Resupply* and *Buy to
|
||||
Resupply*. Set **WH1** as the *Resupply Warehouse*.
|
||||
#. Go to *Inventory > Configuration > Warehouse Management > Routes* and click
|
||||
on the *Make To Order* one.
|
||||
#. Add a new *Procurement Rule* with these settings and save:
|
||||
|
||||
- Name: *WH1 -> WH2-MTO*
|
||||
- Action: *Move From Another Location*
|
||||
- Procurement Location: *WH2/Stock*
|
||||
- Served Warehouse: *WH2*
|
||||
- Source Location: *WH1/Stock*
|
||||
- Move Supply Method: *Create Procurement*
|
||||
- Action: *Pull From*
|
||||
- Operation Type: *WH1: Internal Transfers*
|
||||
- Source Location: *WH1/Stock*
|
||||
- Destination Location: *WH2/Stock*
|
||||
- Move Supply Method: *Take From Stock*
|
||||
- Propagation of Procurement Group: *Propagate*
|
||||
- Propagate cancel and split: `True`
|
||||
- Warehouse to Propagate: *WH1*
|
||||
@@ -104,7 +103,7 @@ 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_picking_procure_method%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_picking_procure_method%0Aversion:%2012.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.
|
||||
|
||||
@@ -124,6 +123,8 @@ Contributors
|
||||
* David Vidal
|
||||
* Pedro M. Baeza
|
||||
|
||||
* Kitti Upariphutthiphong <kittiu@ecosoft.co.th>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
|
||||
@@ -137,6 +138,6 @@ 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/11.0/stock_picking_procure_method>`_ project on GitHub.
|
||||
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_picking_procure_method>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{
|
||||
'name': 'Stock Picking Procure Method',
|
||||
'summary': 'Allows to force the procurement method from the picking',
|
||||
'version': '11.0.1.0.0',
|
||||
'version': '12.0.1.0.0',
|
||||
'category': 'Warehouse',
|
||||
'author': 'Tecnativa,'
|
||||
'Odoo Community Association (OCA)',
|
||||
|
||||
30
stock_picking_procure_method/i18n/pt_BR.po
Normal file
30
stock_picking_procure_method/i18n/pt_BR.po
Normal file
@@ -0,0 +1,30 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * stock_picking_procure_method
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: Automatically generated\n"
|
||||
"Language-Team: none\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_picking_procure_method
|
||||
#: model:ir.model.fields,help:stock_picking_procure_method.field_stock_picking__procure_method
|
||||
msgid "By default, the system will take from the stock in the source location and passively wait for availability. The other possibility allows you to directly create a procurement on the source location (and thus ignore its current stock) to gather products. If we want to chain moves and have this one to wait for the previous, this second option should be chosen."
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_picking_procure_method
|
||||
#: model:ir.model.fields,field_description:stock_picking_procure_method.field_stock_picking__procure_method
|
||||
msgid "Supply Method"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_picking_procure_method
|
||||
#: model:ir.model,name:stock_picking_procure_method.model_stock_picking
|
||||
msgid "Transfer"
|
||||
msgstr ""
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
@@ -14,12 +14,12 @@ msgstr ""
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: stock_picking_procure_method
|
||||
#: model:ir.model.fields,help:stock_picking_procure_method.field_stock_picking_procure_method
|
||||
#: model:ir.model.fields,help:stock_picking_procure_method.field_stock_picking__procure_method
|
||||
msgid "By default, the system will take from the stock in the source location and passively wait for availability. The other possibility allows you to directly create a procurement on the source location (and thus ignore its current stock) to gather products. If we want to chain moves and have this one to wait for the previous, this second option should be chosen."
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_picking_procure_method
|
||||
#: model:ir.model.fields,field_description:stock_picking_procure_method.field_stock_picking_procure_method
|
||||
#: model:ir.model.fields,field_description:stock_picking_procure_method.field_stock_picking__procure_method
|
||||
msgid "Supply Method"
|
||||
msgstr ""
|
||||
|
||||
|
||||
34
stock_picking_procure_method/i18n/zh_CN.po
Normal file
34
stock_picking_procure_method/i18n/zh_CN.po
Normal file
@@ -0,0 +1,34 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * stock_picking_procure_method
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2019-10-12 16:36+0000\n"
|
||||
"Last-Translator: 黎伟杰 <674416404@qq.com>\n"
|
||||
"Language-Team: none\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_picking_procure_method
|
||||
#: model:ir.model.fields,help:stock_picking_procure_method.field_stock_picking__procure_method
|
||||
msgid "By default, the system will take from the stock in the source location and passively wait for availability. The other possibility allows you to directly create a procurement on the source location (and thus ignore its current stock) to gather products. If we want to chain moves and have this one to wait for the previous, this second option should be chosen."
|
||||
msgstr ""
|
||||
"默认情况下,系统将从源位置中的库存中取出,并被动地等待可用性。另一种可能性使您可以直接在源位置创建采购(从而忽略其当前库存)以收集产品。如果我们要链接移动"
|
||||
"并让其等待上一个,则应选择第二个选项。"
|
||||
|
||||
#. module: stock_picking_procure_method
|
||||
#: model:ir.model.fields,field_description:stock_picking_procure_method.field_stock_picking__procure_method
|
||||
msgid "Supply Method"
|
||||
msgstr "供应方法"
|
||||
|
||||
#. module: stock_picking_procure_method
|
||||
#: model:ir.model,name:stock_picking_procure_method.model_stock_picking
|
||||
msgid "Transfer"
|
||||
msgstr "调拨"
|
||||
@@ -6,21 +6,20 @@ Common steps to `mrp` and `purchase` procurements:
|
||||
#. Go to *Inventory > Configuration > Settings > Warehouse* and set *Multi-Step
|
||||
Routes* on.
|
||||
#. Go to *Inventory > Configuration > Warehouse Management > Warehouses*
|
||||
#. Create **WH1** with either *Manufacture in this Warehouse* or *Purchase to
|
||||
resupply this warehouse* or both set.
|
||||
#. Create **WH2** setting off *Manufacture in this Warehouse* and *Purchase to
|
||||
resupply this warehouse*. Set **WH1** as the *Resupply Warehouse*.
|
||||
#. Create **WH1** with either *Manufacture to Resupply* or *Buy to
|
||||
Resupply* this warehouse or both set.
|
||||
#. Create **WH2** setting off *Manufacture to Resupply* and *Buy to
|
||||
Resupply*. Set **WH1** as the *Resupply Warehouse*.
|
||||
#. Go to *Inventory > Configuration > Warehouse Management > Routes* and click
|
||||
on the *Make To Order* one.
|
||||
#. Add a new *Procurement Rule* with these settings and save:
|
||||
|
||||
- Name: *WH1 -> WH2-MTO*
|
||||
- Action: *Move From Another Location*
|
||||
- Procurement Location: *WH2/Stock*
|
||||
- Served Warehouse: *WH2*
|
||||
- Source Location: *WH1/Stock*
|
||||
- Move Supply Method: *Create Procurement*
|
||||
- Action: *Pull From*
|
||||
- Operation Type: *WH1: Internal Transfers*
|
||||
- Source Location: *WH1/Stock*
|
||||
- Destination Location: *WH2/Stock*
|
||||
- Move Supply Method: *Take From Stock*
|
||||
- Propagation of Procurement Group: *Propagate*
|
||||
- Propagate cancel and split: `True`
|
||||
- Warehouse to Propagate: *WH1*
|
||||
|
||||
@@ -2,3 +2,5 @@
|
||||
|
||||
* David Vidal
|
||||
* Pedro M. Baeza
|
||||
|
||||
* Kitti Upariphutthiphong <kittiu@ecosoft.co.th>
|
||||
|
||||
BIN
stock_picking_procure_method/static/description/icon.png
Normal file
BIN
stock_picking_procure_method/static/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
@@ -3,7 +3,7 @@
|
||||
<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.14: http://docutils.sourceforge.net/" />
|
||||
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
|
||||
<title>Stock Picking Procure Method</title>
|
||||
<style type="text/css">
|
||||
|
||||
@@ -367,7 +367,7 @@ ul.auto-toc {
|
||||
!! 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="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.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/11.0/stock_picking_procure_method"><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-11-0/stock-logistics-warehouse-11-0-stock_picking_procure_method"><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/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.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/12.0/stock_picking_procure_method"><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-12-0/stock-logistics-warehouse-12-0-stock_picking_procure_method"><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/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module adds the possibility to set the supply method to <em>Apply Procurement
|
||||
Rules</em> in the pickings, which is normally set to <em>Take From Stock</em> by default.</p>
|
||||
<p>This way, you can configure MTO flows triggered from the picking itself.</p>
|
||||
@@ -400,20 +400,19 @@ through WH1.</p>
|
||||
<li>Go to <em>Inventory > Configuration > Settings > Warehouse</em> and set <em>Multi-Step
|
||||
Routes</em> on.</li>
|
||||
<li>Go to <em>Inventory > Configuration > Warehouse Management > Warehouses</em></li>
|
||||
<li>Create <strong>WH1</strong> with either <em>Manufacture in this Warehouse</em> or <em>Purchase to
|
||||
resupply this warehouse</em> or both set.</li>
|
||||
<li>Create <strong>WH2</strong> setting off <em>Manufacture in this Warehouse</em> and <em>Purchase to
|
||||
resupply this warehouse</em>. Set <strong>WH1</strong> as the <em>Resupply Warehouse</em>.</li>
|
||||
<li>Create <strong>WH1</strong> with either <em>Manufacture to Resupply</em> or <em>Buy to
|
||||
Resupply</em> this warehouse or both set.</li>
|
||||
<li>Create <strong>WH2</strong> setting off <em>Manufacture to Resupply</em> and <em>Buy to
|
||||
Resupply</em>. Set <strong>WH1</strong> as the <em>Resupply Warehouse</em>.</li>
|
||||
<li>Go to <em>Inventory > Configuration > Warehouse Management > Routes</em> and click
|
||||
on the <em>Make To Order</em> one.</li>
|
||||
<li>Add a new <em>Procurement Rule</em> with these settings and save:<ul>
|
||||
<li>Name: <em>WH1 -> WH2-MTO</em></li>
|
||||
<li>Action: <em>Move From Another Location</em></li>
|
||||
<li>Procurement Location: <em>WH2/Stock</em></li>
|
||||
<li>Served Warehouse: <em>WH2</em></li>
|
||||
<li>Source Location: <em>WH1/Stock</em></li>
|
||||
<li>Move Supply Method: <em>Create Procurement</em></li>
|
||||
<li>Action: <em>Pull From</em></li>
|
||||
<li>Operation Type: <em>WH1: Internal Transfers</em></li>
|
||||
<li>Source Location: <em>WH1/Stock</em></li>
|
||||
<li>Destination Location: <em>WH2/Stock</em></li>
|
||||
<li>Move Supply Method: <em>Take From Stock</em></li>
|
||||
<li>Propagation of Procurement Group: <em>Propagate</em></li>
|
||||
<li>Propagate cancel and split: <cite>True</cite></li>
|
||||
<li>Warehouse to Propagate: <em>WH1</em></li>
|
||||
@@ -457,7 +456,7 @@ created.</li>
|
||||
<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_picking_procure_method%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_picking_procure_method%0Aversion:%2012.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">
|
||||
@@ -479,6 +478,8 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||
</ul>
|
||||
</blockquote>
|
||||
</li>
|
||||
<li><p class="first">Kitti Upariphutthiphong <<a class="reference external" href="mailto:kittiu@ecosoft.co.th">kittiu@ecosoft.co.th</a>></p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
@@ -488,7 +489,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||
<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/11.0/stock_picking_procure_method">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_picking_procure_method">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>
|
||||
|
||||
@@ -25,10 +25,10 @@ class TestStockPickingMTO(common.SavepointCase):
|
||||
'code': 'TSWH2',
|
||||
'resupply_wh_ids': [(6, 0, cls.wh1.ids)],
|
||||
})
|
||||
cls.procurement_rule = cls.env['procurement.rule'].create({
|
||||
cls.procurement_rule = cls.env['stock.rule'].create({
|
||||
'name': 'TST-WH1 -> TST-WH2 MTO',
|
||||
'route_id': cls.mto_route.id,
|
||||
'action': 'move',
|
||||
'action': 'pull',
|
||||
'location_src_id': cls.wh1.lot_stock_id.id,
|
||||
'procure_method': 'make_to_stock',
|
||||
'picking_type_id': cls.wh1.int_type_id.id,
|
||||
|
||||
Reference in New Issue
Block a user