Skip to content

Commit

Permalink
Merge PR #1857 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Oct 10, 2023
2 parents 65ad921 + eb8bf26 commit 3d88749
Show file tree
Hide file tree
Showing 18 changed files with 768 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/stock_product_qty_by_packaging/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
98 changes: 98 additions & 0 deletions stock_product_qty_by_packaging/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
==========================
Stock packaging calculator
==========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:1b95661a0ad92f6e35de1124a9973fa5994667274312da11c67004fdd9f5c868
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-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/16.0/stock_product_qty_by_packaging
: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-16-0/stock-logistics-warehouse-16-0-stock_product_qty_by_packaging
: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=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Glue module for `stock_packaging_calculator` and `stock`.
It adds product qty computed by packaging to:

* stock move
* stock move line
* stock quant

Displays it:

* stock picking view for move line

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

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_product_qty_by_packaging%0Aversion:%2016.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 <[email protected]>
Sébastien Alix <[email protected]>
* `Trobz <https://trobz.com>`_:
* Nguyen Hoang Hiep <[email protected]>

Other credits
~~~~~~~~~~~~~

The migration of this module from 14.0 to 16.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/16.0/stock_product_qty_by_packaging>`_ 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_product_qty_by_packaging/__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_product_qty_by_packaging/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Stock packaging calculator",
"summary": "Compute product quantity to pick by packaging",
"version": "16.0.1.0.0",
"development_status": "Alpha",
"category": "Warehouse Management",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"author": "Camptocamp, Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"depends": ["stock_packaging_calculator", "stock"],
"data": ["views/stock_picking.xml"],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_product_qty_by_packaging
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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_product_qty_by_packaging
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_inventory_line__display_name
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_move__display_name
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_move_line__display_name
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_quant__display_name
msgid "Display Name"
msgstr ""

#. module: stock_product_qty_by_packaging
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_inventory_line__id
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_move__id
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_move_line__id
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_quant__id
msgid "ID"
msgstr ""

#. module: stock_product_qty_by_packaging
#: model:ir.model,name:stock_product_qty_by_packaging.model_stock_inventory_line
msgid "Inventory Line"
msgstr ""

#. module: stock_product_qty_by_packaging
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_inventory_line____last_update
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_move____last_update
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_move_line____last_update
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_quant____last_update
msgid "Last Modified on"
msgstr ""

#. module: stock_product_qty_by_packaging
#: model:ir.model,name:stock_product_qty_by_packaging.model_stock_move_line
msgid "Product Moves (Stock Move Line)"
msgstr ""

#. module: stock_product_qty_by_packaging
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_inventory_line__product_qty_by_packaging_display
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_move__product_qty_by_packaging_display
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_move_line__product_qty_by_packaging_display
#: model:ir.model.fields,field_description:stock_product_qty_by_packaging.field_stock_quant__product_qty_by_packaging_display
msgid "Qty by packaging"
msgstr ""

#. module: stock_product_qty_by_packaging
#: model:ir.model,name:stock_product_qty_by_packaging.model_stock_quant
msgid "Quants"
msgstr ""

#. module: stock_product_qty_by_packaging
#: model:ir.model,name:stock_product_qty_by_packaging.model_stock_move
msgid "Stock Move"
msgstr ""
3 changes: 3 additions & 0 deletions stock_product_qty_by_packaging/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import stock_move
from . import stock_move_line
from . import stock_quant
13 changes: 13 additions & 0 deletions stock_product_qty_by_packaging/models/stock_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2020 Camptocamp SA
# @author: Simone Orsi <[email protected]>
# @author: Sébastien Alix <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from odoo import models


class StockMove(models.Model):
_name = "stock.move"
_inherit = ["stock.move", "product.qty_by_packaging.mixin"]

_qty_by_pkg__qty_field_name = "product_uom_qty"
13 changes: 13 additions & 0 deletions stock_product_qty_by_packaging/models/stock_move_line.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2020 Camptocamp SA
# @author: Simone Orsi <[email protected]>
# @author: Sébastien Alix <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)

from odoo import models


class StockMoveLine(models.Model):
_name = "stock.move.line"
_inherit = ["stock.move.line", "product.qty_by_packaging.mixin"]

_qty_by_pkg__qty_field_name = "reserved_qty"
13 changes: 13 additions & 0 deletions stock_product_qty_by_packaging/models/stock_quant.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2020 Camptocamp SA
# @author: Simone Orsi <[email protected]>
# @author: Sébastien Alix <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import models


class StockQuant(models.Model):
_name = "stock.quant"
_inherit = ["stock.quant", "product.qty_by_packaging.mixin"]

_qty_by_pkg__qty_field_name = "quantity"
4 changes: 4 additions & 0 deletions stock_product_qty_by_packaging/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Simone Orsi <[email protected]>
Sébastien Alix <[email protected]>
* `Trobz <https://trobz.com>`_:
* Nguyen Hoang Hiep <[email protected]>
2 changes: 2 additions & 0 deletions stock_product_qty_by_packaging/readme/CREDITS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The migration of this module from 13.0 to 14.0 was financially supported by Camptocamp.
The migration of this module from 14.0 to 16.0 was financially supported by Camptocamp.
10 changes: 10 additions & 0 deletions stock_product_qty_by_packaging/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Glue module for `stock_packaging_calculator` and `stock`.
It adds product qty computed by packaging to:

* stock move
* stock move line
* stock quant

Displays it:

* stock picking view for move line
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3d88749

Please sign in to comment.