forked from OCA/stock-logistics-warehouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] stock_mts_mto_rule: pre-commit auto fixes
- Loading branch information
Showing
12 changed files
with
111 additions
and
113 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,41 +17,39 @@ Stock MTS+MTO Rule | |
: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/16.0/stock_mts_mto_rule | ||
:target: https://github.com/OCA/stock-logistics-warehouse/tree/17.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-16-0/stock-logistics-warehouse-16-0-stock_mts_mto_rule | ||
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_mts_mto_rule | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=16.0 | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=17.0 | ||
:alt: Try me on Runboat | ||
|
||
|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 : | ||
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. | ||
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 | ||
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. | ||
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 : | ||
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. | ||
|
@@ -67,47 +65,48 @@ 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. | ||
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. | ||
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 to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_mts_mto_rule%0Aversion:%2016.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_mts_mto_rule%0Aversion:%2017.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 <[email protected]> | ||
* Jared Kipe <[email protected]> | ||
* Alan Ramos <[email protected]> | ||
- Florian da Costa <[email protected]> | ||
- Jared Kipe <[email protected]> | ||
- Alan Ramos <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
----------- | ||
|
||
This module is maintained by the OCA. | ||
|
||
|
@@ -119,6 +118,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/16.0/stock_mts_mto_rule>`_ project on GitHub. | ||
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_mts_mto_rule>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- Florian da Costa \<<[email protected]>\> | ||
- Jared Kipe \<<[email protected]>\> | ||
- Alan Ramos \<<[email protected]>\> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
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. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters