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)',
|
||||
|
||||
@@ -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"
|
||||
@@ -27,4 +27,3 @@ msgstr ""
|
||||
#: 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>
|
||||
|
||||
@@ -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