Do not merge stock moves that go to different destination moves
Project description
Stock Move - Do not merge by destination moves
This module extends the functionality of stock move merging to allow you to never merge stock moves if those moves will go to different destination moves.
Table of contents
Use Cases / Context
This module was developed because sometimes we don’t want our stock movements to be merged if goes to different moves because:
Sale free products that must be invoiced separatelly (for example, get 2 + 1 free)
Use warehouse with 2 or 3 steps in Outgoing Shipments
Use products with Invoicing Policy: Delivered Quantities
All of these conditions must be met for this module to be really useful.
Use case example:
We have an order with two lines of the same product that need to be weighed (kg) and the offer is “get 2 + 1 free”.
Each piece of Fish measures aproximately 1kg and we assume you know how many Fishes you need to take.
The lines of the sale would be like this:
2 pieces of Fish for aproximately 2kg in total.
1 piece of Fish for aproximately 1kg in total with 100% discount.
Odoo Core VS. Module: Workflow comparison
Odoo Core |
With this module |
|---|---|
The OUT step will not be grouped, so we will have 2 moves. |
The OUT step will not be grouped, so we will have 2 moves. |
The PICK step will be grouped into one line, telling you that 3 kgs must be demanded |
Since we have 2 separate moves on the OUT step, we don’t want to merge moves in the PICK step. PICK step will tell you that 3kgs must be demanded into 2 separate moves. |
When you measure the 3 fishes in the PICK step, we get 1.9kg for the 2 Fishes and 0.7kg for the free Fish. 2.6kg in total. |
When you measure the 3 fishes in the PICK step, we get 1.9kg for the 2 Fishes and 0.7kg for the free Fish. 2.6kg in total. |
Confirm the PICK step. When you reserve quantities on OUTGOING step, 2kg will go to the 2 Fishes and 0.6kg to the free Fish. |
Confirm the PICK step. When you reserve quantities on OUTGOING step, 1.9kg will go to the 2 Fishes and 0.7kg to the free Fish. |
Your invoice to the customer will be 2kg for the 2 pieces and 0.6kg for the free fish. |
Your invoice to the customer will be 1.9kg for the 2 pieces and 0.7kg for the free fish. |
This is not correct: The 2 pices of Fish should be invoiced for 1.9kg and the free fish should be invoiced for 0.7kg at 100% discount. |
This is correct |
If you also don’t want to have to reweigh in the last step if you exceeded the quantity demanded (Fishes weight 1.14kg each for example), you might be interested in this module:
stock_rule_reserve_max_quantity
Usage
To use this module, you need to have activated sales module:
Activate sale module.
Go to Warehouse and activate 2 steps shipping process.
Create and confirm a sale with 2 lines: One with discount and one without discount with the same product.
Confirm the sale.
Check the first picking (PICK) moves is not grouped.
Set quantity done on each line that differs (below) the reserved quantity on PICK picking and confirm it.
Go to the OUT picking, and check how quantities are distributed correctly.
Known issues / Roadmap
Receipts (second step quantities not correct)
Symptom: After testing receipts, the quantities shown/propagated in the second step are not correct (they do not match what was processed in the first step, or the distribution per move is inconsistent).
Source: Video “Moduon - Review Gelo [16.0][ADD] stock_move_not_merge_by_dest_moves #2014”. https://www.loom.com/share/416b1efb65d04c5d80acd9fac2bf4e0f?sid=8084079a-d28b-4b04-9839-cf3544cddc42
Expected: The second-step document should reflect the quantities done in the first step, line by line / per destination move, without over- or under-allocation. Actual: The second-step quantities differ from the first step and/or are misallocated. Status: Under investigation.
Sales (SO line changes not updated on picking)
Symptom: After confirming a Sales Order, changes made on the SO line are not propagated to the generated picking.
Source: Video “Moduon - Review Gelo [16.0][ADD] stock_move_not_merge_by_dest_moves #2014 sales”. https://www.loom.com/share/8dfe51327d6d435f8dbdcef4af9ce77b?sid=424232ef-c392-4903-8d42-0254da24c812
Expected: Updates on the SO line (e.g., quantity/discount that affect downstream moves) should be reflected on the generated picking. Actual: The picking does not refresh after SO line changes. Status: Under investigation.
Bug Tracker
Bugs are tracked on GitHub 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.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Other credits
The development of this module has been financially supported by:
Ulzama
Maintainers
This module is maintained by the OCA.
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.
Current maintainers:
This module is part of the OCA/stock-logistics-workflow project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_stock_move_not_merge_by_dest_moves-16.0.1.0.1-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_stock_move_not_merge_by_dest_moves-16.0.1.0.1-py3-none-any.whl
- Upload date:
- Size: 32.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc0ef8e7845e809a4e49f82c9fd613eb21a98693128f7d70061395d170bb8a50
|
|
| MD5 |
394cb1668228e37d355f83448d5b05d0
|
|
| BLAKE2b-256 |
fdae3342a937baa332075df99fa5b743055f3d5789427adb58d2f352d1a20fe6
|