Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] stock_packaging_calculator: Migration to 17.0 #2067

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e821063
Add stock_packaging_calculator
simahawk May 26, 2020
57761fc
stock_packaging_calculator: make product uom the minimal unit
simahawk Jun 8, 2020
86ba203
[UPD] Update stock_packaging_calculator.pot
oca-travis Jun 8, 2020
7f3e323
stock_packaging_calculator: return dict instead of tuple
simahawk Jun 8, 2020
dfb9ccc
stock_packaging_calculator: add contained packaging compute
simahawk Jun 8, 2020
b2812f6
stock_packaging_calculator 13.0.1.1.0
OCA-git-bot Jun 9, 2020
d4683ba
stock_packaging_calculator: make contained mapping computed
simahawk Jun 9, 2020
ecbc07b
stock_packaging_calculator 13.0.1.2.0
OCA-git-bot Jun 22, 2020
d60d56b
stock_packaging_calculator: add support for packaging filter
simahawk Jun 30, 2020
f989e72
stock_packaging_calculator: add support for custom packaging name
simahawk Jun 30, 2020
0a0fa94
stock_packaging_calculator 13.0.1.3.0
OCA-git-bot Jul 1, 2020
aa4d9b3
Re-license stock_packaging_calculator w/ LGPL
simahawk Jul 15, 2020
ed50ffb
stock_packaging_calculator 13.0.1.4.0
OCA-git-bot Jul 16, 2020
9b00109
[IMP][stock_packaging_calculator] Add key is_unit for in the packagin…
Tonow-c2c Jul 6, 2020
06f4cbc
stock_packaging_calculator: Add hook on packaging values
grindtildeath Jul 16, 2020
fee7246
stock_packaging_calculator 13.0.1.5.0
simahawk Jul 17, 2020
062ddec
packaging_calculator: fix sorting
simahawk Aug 3, 2020
90bab81
packaging_calculator: allow custom value handler
simahawk Aug 3, 2020
7f2bb55
stock_packaging_calculator 13.0.1.6.0
OCA-git-bot Aug 11, 2020
a989a1e
[IMP] stock_packaging_calculator: black, isort, prettier
sebastienbeau Jan 6, 2021
9c3c1bd
[MIG] stock_packaging_calculator: Migration to 14.0
sebastienbeau Jan 6, 2021
1580d8e
stock_packaging_calculator 14.0.1.0.1
OCA-git-bot Feb 5, 2021
9976cab
s_packaging_calculator: include barcode
simahawk May 11, 2021
20c1fc9
s_packaging_calculator: ease override of packaging name
simahawk May 28, 2021
d883283
s_packaging_calculator: add product_qty_by_packaging_as_str
simahawk May 28, 2021
9f0984f
s_packaging_calculator: add handy mixin
simahawk May 28, 2021
d9dce66
s_packaging_calculator: contained mapping depends on lang
simahawk Jun 3, 2021
6134dd4
s_packaging_calculator: include units when units only on demand
simahawk Jun 11, 2021
35cfc4c
s_packaging_calculator: improve test util
simahawk Jul 15, 2021
1c99a9b
[IMP] stock_packaging_calculator: black, isort, prettier
Sep 14, 2021
fd86673
stock_packaging_calculator 14.0.1.1.0
OCA-git-bot Sep 21, 2021
64ff32b
[IMP] stock_packaging_calculator: black, isort, prettier
ChrisOForgeFlow Dec 13, 2021
7295ebf
[15.0][MIG] stock_packaging_calculator
ChrisOForgeFlow Dec 13, 2021
b7db64a
[MIG] stock_packaging_calculator: Migration to 16.0
TDu Oct 10, 2022
174132d
stock_packaging_calculator 16.0.1.0.1
OCA-git-bot Mar 20, 2023
8abac2a
Added translation using Weblate (Italian)
mymage Nov 17, 2023
71d6610
[IMP] stock_packaging_calculator: pre-commit auto fixes
nguyenminhchien Jun 10, 2024
e30a8a6
[MIG] stock_packaging_calculator: Migration to 17.0
nguyenminhchien Jun 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions stock_packaging_calculator/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
==========================
Stock packaging calculator
==========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:7f199b0f860e5108a32b20d253fdf4e90e51bd2ba3088e0b48c5465c1274b5a8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/17.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-17-0/stock-logistics-warehouse-17-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=17.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:%2017.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>

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/17.0/stock_packaging_calculator>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions stock_packaging_calculator/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions stock_packaging_calculator/__manifest__.py
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": "17.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"],
}
42 changes: 42 additions & 0 deletions stock_packaging_calculator/i18n/it.po
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 stock_packaging_calculator/i18n/stock_packaging_calculator.pot
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 16.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 ""
2 changes: 2 additions & 0 deletions stock_packaging_calculator/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import product
from . import product_qty_by_packaging_mixin
Loading
Loading