Compute product quantity to pick by packaging
Project description
Basic module providing an helper method to calculate the quantity of product by packaging.
Table of contents
Usage
Imagine you have the following packagings:
Pallet: 1000 Units
Big box: 500 Units
Box: 50 Units
and you have to pick from your warehouse 2860 Units.
Then you can do:
>>> product.product_qty_by_packaging(2860) [ {"id": 1, "qty": 2, "name": "Pallet"}, {"id": 2, "qty": 1, "name": "Big box"}, {"id": 3, "qty": 7, "name": "Box"}, {"id": 100, "qty": 10, "name": "Units"}, ]
With this you can show a proper message to warehouse operators to quickly pick the quantity they need.
Optionally you can get contained packaging by passing with_contained flag:
>>> product.product_qty_by_packaging(2860, with_contained=True) [ {"id": 1, "qty": 2, "name": "Pallet", "contained": [{"id": 2, "qty": 2, "name": "Big box"}]}, {"id": 2, "qty": 1, "name": "Big box", "contained": [{"id": 3, "qty": 10, "name": "Box"}]}, {"id": 3, "qty": 7, "name": "Box", "contained": [{"id": 100, "qty": 50, "name": "Units"}]}, {"id": 100, "qty": 10, "name": "Units", "contained": []},}, ]
Known issues / Roadmap
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
Simone Orsi <simahawk@gmail.com>
Christopher Ormaza <chris.ormaza@forgeflow.com>
Nguyen Minh Chien <chien@trobz.com>
Tran Quoc Duong <duongtq@trobz.com>
Other credits
The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp.
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.
This module is part of the OCA/stock-logistics-warehouse 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
File details
Details for the file odoo_addon_stock_packaging_calculator-18.0.1.0.0.2-py3-none-any.whl
.
File metadata
- Download URL: odoo_addon_stock_packaging_calculator-18.0.1.0.0.2-py3-none-any.whl
- Upload date:
- Size: 32.4 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 | 4f5a2689b7859c91d8dde426fa56f1a9d790cb3e9f82137d91a288f3bef58a58 |
|
MD5 | 8bcfbd5e7ea4d533d395a463192a742e |
|
BLAKE2b-256 | 3164089872ce4ed58db4a3f11fc286f229341cc3b4522202daeda7e4463a239e |