Manage packages and locations storage types
Project description
Stock Storage Type
This module extends package types Odoo feature in order to better manage stock moves with packages according to the packaging and stock location properties (like height, weight or any customized conditions).
Moreover, this module implements “package type put-away strategy” in order to compute a put-away location using package types.
The standard put-away strategy is applied before the package type put-away strategy as the former relies on product or product category and the latter relies on stock packages.
In other words, when a move is reserved, Odoo standard put-away strategy will be applied to compute a new destination on the stock move lines, according to the product. After this first “put-away computation”, the “package type” put-away strategy is applied, if the reserved quant is linked to a package defining a package type.
Storage locations linked to the package type are processed sequentially, if said storage location is a child of the move line’s destination location (i.e either the put-away location or the move’s destination location). For each location, their package type strategy is applied as well as the restrictions defined on the storage category. If no suitable location is found, the next location in the sequence will be searched and so on.
For the package type putaway strategy “None”, the location is considered as is. For the “ordered children” strategy, children locations are sorted by first by max height which is a physical constraint to respect, then pack putaway sequence which allow to favor for example some level or corridor, and finally by name.
At the end, if found location is not the same as the original destination location, the putaway strategies are applied (e.g.: A “None” pack putaway strategy is set on computed location and a putaway rule exists on that one).
Table of contents
Usage
Go to “Inventory > Settings > Package Types” and “Inventory > Settings > Storage Categories”, to define Package Types and Storage Categories.
Package Type can be set on Product and Product Packaging.
Storage Category can be added to any stock location and will be computed automatically as Allowed Storage Category on said stock location’s children location.
Pack put-away strategy
On stock locations, you can define a “Pack put-away strategy” as “Ordered bins”, so that any move, having this locations as its destination, will be put-away on a children location, according to the restrictions from package types.
Put-away sequence
For any package types, you must define a Put-away sequence (i.e. stock location to search) where such a package is allowed to be put-away. Locations will be processed sequentially and the first one having an allowed child location (according to restrictions) will be used to put away.
A good practice here, is to set a location accepting this package type without any restriction as the last location in the sequence, to act as a fallback if no other location could be found before.
If a location with a ‘none’ strategy is set in the sequence and matches with the move line’s destination, it will stop evaluating the next locations in the sequence.
Known issues / Roadmap
Currently, the module supports only strategies applied on packages (stock.quant.package). For implementations that do not use packages, it would be possible to add compatibility with product packaging.
The information needed from a package are:
the storage type, to know which strategy is applied
the dimensions and weight, to apply constraints
If we want to support product packaging, we would need to:
guess the product packaging of a move line based on the product and quantities (multiple of a packaging quantity, for instance 8000 would be a pallet if the pallet has 2000 units, 1900 would be Box if the Box has 100 units)
from the product packaging, we know the storage type and dimensions
Everywhere the module is using package_id, we would have to check this:
use the package if a package is set
else, use the computed packaging
About Unit of Measures:
In v13, there is an assumption of height to be expressed in mm and weight in kg. In v14, packaging can be expressed in differents units. Explicit fields are introduced like max_weight_in_kg in order make simple and efficient computations.
Limitation
If the locations structure is using views intensively in order to separate storage types kindly (not mixing them), Odoo standard method to get putaway strategy is returning the first child if a move location destination is a view.
This is not convenient if we want to set specific strategies on that view. So, we override standard process by returning the view itself (if no putaway is set).
This can lead to a change on standard behavior as people will need to change manually the location destination for pickings with views as default destination.
Idea: maybe adding a field on view locations to say ‘this is a view but don’t apply standard child location selection’ could help filtering view candidates.
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
Akim Juillerat <akim.juillerat@camptocamp.com>
Guewen Baconnier <guewen.baconnier@camptocamp.com>
Raphaël Reverdy <raphael.reverdy@akretion.com>
Jacques-Etienne Baudoux <je@bcim.be>
Laurent Mignon <laurent.mignon@acsone.eu>
Fernando La Chica - GreenICe <fernandolachica@gmail.com>
Denis Roussel <denis.roussel@acsone.eu>
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-putaway 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_storage_type-18.0.1.6.1.1-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_stock_storage_type-18.0.1.6.1.1-py3-none-any.whl
- Upload date:
- Size: 108.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68b2eae7eef79577e687808c79e1857ddace00293cbd3d4062462867554270ad
|
|
| MD5 |
5e5a5eb2c12b79e111ec9c3d705a7665
|
|
| BLAKE2b-256 |
047ffc1c26d3ad6be837f0a8ee63c086abdfc57302dba7e721c6e68b97817b22
|