Skip to main content

Compute product quantity to pick by packaging

Project description

Beta License: LGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

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

Authors

  • Camptocamp

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file odoo_addon_stock_packaging_calculator-17.0.1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_stock_packaging_calculator-17.0.1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd082b39376358433f2fbc1311d1d481f0a0f2e62e482f57ceb4772f6d2543eb
MD5 82731e7ad0109ac3d3cf459cfcc66f4f
BLAKE2b-256 11fdaffda74ca56dd6979546f061f9b4ac8248908c5e354b082f24c20acfb0eb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page