-
-
Notifications
You must be signed in to change notification settings - Fork 719
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by simahawk
- Loading branch information
Showing
24 changed files
with
1,402 additions
and
0 deletions.
There are no files selected for viewing
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,132 @@ | ||
========================== | ||
Stock packaging calculator | ||
========================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:355bc67eed8ca907e517b4a8f46ac6b8a8e685664f2342d6d12fa7fc79a05b38 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html | ||
:alt: License: LGPL-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/18.0/stock_packaging_calculator | ||
: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-18-0/stock-logistics-warehouse-18-0-stock_packaging_calculator | ||
: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=18.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
Basic module providing an helper method to calculate the quantity of | ||
product by packaging. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
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 <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_packaging_calculator%0Aversion:%2018.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 | ||
------- | ||
|
||
* Camptocamp | ||
|
||
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. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
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/18.0/stock_packaging_calculator>`_ 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 @@ | ||
from . import models |
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,15 @@ | ||
# Copyright 2020 Camptocamp SA | ||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl) | ||
{ | ||
"name": "Stock packaging calculator", | ||
"summary": "Compute product quantity to pick by packaging", | ||
"version": "18.0.1.0.0", | ||
"development_status": "Beta", | ||
"category": "Warehouse Management", | ||
"website": "https://github.com/OCA/stock-logistics-warehouse", | ||
"author": "Camptocamp, Odoo Community Association (OCA)", | ||
"license": "LGPL-3", | ||
"application": False, | ||
"installable": True, | ||
"depends": ["product"], | ||
} |
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,42 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_packaging_calculator | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2024-04-19 07:37+0000\n" | ||
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n" | ||
"Language-Team: none\n" | ||
"Language: it\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.17\n" | ||
|
||
#. module: stock_packaging_calculator | ||
#: model:ir.model.fields,field_description:stock_packaging_calculator.field_product_product__packaging_contained_mapping | ||
msgid "Packaging Contained Mapping" | ||
msgstr "Mappatura contenuto confezione" | ||
|
||
#. module: stock_packaging_calculator | ||
#: model:ir.model,name:stock_packaging_calculator.model_product_qty_by_packaging_mixin | ||
msgid "Product Qty By Packaging (Mixin)" | ||
msgstr "Q.tà prodotto per confezione (mixin)" | ||
|
||
#. module: stock_packaging_calculator | ||
#: model:ir.model,name:stock_packaging_calculator.model_product_product | ||
msgid "Product Variant" | ||
msgstr "Variante prodotto" | ||
|
||
#. module: stock_packaging_calculator | ||
#: model:ir.model.fields,field_description:stock_packaging_calculator.field_product_qty_by_packaging_mixin__product_qty_by_packaging_display | ||
msgid "Qty by packaging" | ||
msgstr "Q.tà per confezione" | ||
|
||
#. module: stock_packaging_calculator | ||
#: model:ir.model.fields,help:stock_packaging_calculator.field_product_product__packaging_contained_mapping | ||
msgid "Technical field to store contained packaging. " | ||
msgstr "Campo tecnico per salvare la confezione contenuta. " |
39 changes: 39 additions & 0 deletions
39
stock_packaging_calculator/i18n/stock_packaging_calculator.pot
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,39 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_packaging_calculator | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 17.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: stock_packaging_calculator | ||
#: model:ir.model.fields,field_description:stock_packaging_calculator.field_product_product__packaging_contained_mapping | ||
msgid "Packaging Contained Mapping" | ||
msgstr "" | ||
|
||
#. module: stock_packaging_calculator | ||
#: model:ir.model,name:stock_packaging_calculator.model_product_qty_by_packaging_mixin | ||
msgid "Product Qty By Packaging (Mixin)" | ||
msgstr "" | ||
|
||
#. module: stock_packaging_calculator | ||
#: model:ir.model,name:stock_packaging_calculator.model_product_product | ||
msgid "Product Variant" | ||
msgstr "" | ||
|
||
#. module: stock_packaging_calculator | ||
#: model:ir.model.fields,field_description:stock_packaging_calculator.field_product_qty_by_packaging_mixin__product_qty_by_packaging_display | ||
msgid "Qty by packaging" | ||
msgstr "" | ||
|
||
#. module: stock_packaging_calculator | ||
#: model:ir.model.fields,help:stock_packaging_calculator.field_product_product__packaging_contained_mapping | ||
msgid "Technical field to store contained packaging. " | ||
msgstr "" |
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 @@ | ||
from . import product | ||
from . import product_qty_by_packaging_mixin |
Oops, something went wrong.