Skip to content

Commit

Permalink
[16.0][ADD] stock_lot_product_packaging: In products new button "Gene…
Browse files Browse the repository at this point in the history
…rate Packaging In Products".
  • Loading branch information
alfredoavanzosc committed Dec 4, 2024
1 parent 4123730 commit 655aa41
Show file tree
Hide file tree
Showing 19 changed files with 642 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup/stock_lot_product_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,
)
32 changes: 32 additions & 0 deletions stock_lot_product_packaging/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

===========================
Stock lot product packaging
===========================

* In lots new fields "Product Packaging" and "Packaging Units".
* In products new fields "product_density, and "Package types" and new button
"Generate Packaging In Products", to generate packaging for each product
variant.
* If the quant has a lot, show the related field of the lot's packaging units.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/avanzosc/odoo-addons/issues>`_. In case of trouble,
please check there if your issue has already been reported. If you spotted
it first, help us smash it by providing detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Contributors
------------

* Ana Juaristi <[email protected]>
* Alfredo de la Fuente <[email protected]>
1 change: 1 addition & 0 deletions stock_lot_product_packaging/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions stock_lot_product_packaging/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2024 Alfredo de la Fuente - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Stock Lot Product Packaging",
"version": "16.0.1.0.0",
"author": "Avanzosc",
"category": "Inventory/Inventory",
"website": "https://github.com/avanzosc/odoo-addons",
"depends": ["product", "stock", "product_logistics_uom"],
"data": [
"views/stock_package_type_views.xml",
"views/product_template_views.xml",
"views/product_product_views.xml",
"views/stock_lot_views.xml",
"views/stock_quant_views.xml",
],
"license": "AGPL-3",
"installable": True,
}
90 changes: 90 additions & 0 deletions stock_lot_product_packaging/i18n/en_US.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_lot_product_packaging
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-04 12:30+0000\n"
"PO-Revision-Date: 2024-12-04 12:30+0000\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_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_product__product_density
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_template__product_density
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.product_template_form_view2
msgid "Density"
msgstr ""

#. module: stock_lot_product_packaging
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.product_template_form_view
msgid "Generate Packaging In Products"
msgstr ""

#. module: stock_lot_product_packaging
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.stock_package_type_search_view
msgid "Group By"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model,name:stock_lot_product_packaging.model_stock_lot
msgid "Lot/Serial"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_product__package_type_ids
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_template__package_type_ids
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.product_template_form_view
msgid "Package types"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_stock_lot__packaging_units
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_stock_quant__packaging_units
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.view_stock_quant_form_editable
msgid "Packaging Units"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model,name:stock_lot_product_packaging.model_product_template
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_stock_package_type__product_tmpl_id
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.stock_package_type_search_view
msgid "Product"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_product__product_package_ids
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.product_normal_form_view
msgid "Product Packages"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_stock_lot__product_packaging_id
msgid "Product Packaging"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model,name:stock_lot_product_packaging.model_product_product
msgid "Product Variant"
msgstr ""

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

#. module: stock_lot_product_packaging
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.stock_package_type_search_view
msgid "Search Package Types"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model,name:stock_lot_product_packaging.model_stock_package_type
msgid "Stock package type"
msgstr ""
90 changes: 90 additions & 0 deletions stock_lot_product_packaging/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_lot_product_packaging
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-04 12:30+0000\n"
"PO-Revision-Date: 2024-12-04 12:30+0000\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_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_product__product_density
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_template__product_density
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.product_template_form_view2
msgid "Density"
msgstr "Densidad"

#. module: stock_lot_product_packaging
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.product_template_form_view
msgid "Generate Packaging In Products"
msgstr "Generar empaquetados en productos"

#. module: stock_lot_product_packaging
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.stock_package_type_search_view
msgid "Group By"
msgstr "Agrupar por"

#. module: stock_lot_product_packaging
#: model:ir.model,name:stock_lot_product_packaging.model_stock_lot
msgid "Lot/Serial"
msgstr "Lote/serie"

#. module: stock_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_product__package_type_ids
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_template__package_type_ids
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.product_template_form_view
msgid "Package types"
msgstr "Tipos empaquetados"

#. module: stock_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_stock_lot__packaging_units
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_stock_quant__packaging_units
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.view_stock_quant_form_editable
msgid "Packaging Units"
msgstr "Unidades envase"

#. module: stock_lot_product_packaging
#: model:ir.model,name:stock_lot_product_packaging.model_product_template
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_stock_package_type__product_tmpl_id
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.stock_package_type_search_view
msgid "Product"
msgstr "Producto"

#. module: stock_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_product__product_package_ids
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.product_normal_form_view
msgid "Product Packages"
msgstr "Empaquetados producto"

#. module: stock_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_stock_lot__product_packaging_id
msgid "Product Packaging"
msgstr "Empaquetado producto"

#. module: stock_lot_product_packaging
#: model:ir.model,name:stock_lot_product_packaging.model_product_product
msgid "Product Variant"
msgstr "Variante de producto"

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

#. module: stock_lot_product_packaging
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.stock_package_type_search_view
msgid "Search Package Types"
msgstr "Buscar tipos paquete"

#. module: stock_lot_product_packaging
#: model:ir.model,name:stock_lot_product_packaging.model_stock_package_type
msgid "Stock package type"
msgstr "Tipo de paquete de stock"
90 changes: 90 additions & 0 deletions stock_lot_product_packaging/i18n/stock_lot_product_packaging.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_lot_product_packaging
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-04 12:30+0000\n"
"PO-Revision-Date: 2024-12-04 12:30+0000\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_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_product__product_density
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_template__product_density
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.product_template_form_view2
msgid "Density"
msgstr ""

#. module: stock_lot_product_packaging
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.product_template_form_view
msgid "Generate Packaging In Products"
msgstr ""

#. module: stock_lot_product_packaging
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.stock_package_type_search_view
msgid "Group By"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model,name:stock_lot_product_packaging.model_stock_lot
msgid "Lot/Serial"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_product__package_type_ids
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_template__package_type_ids
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.product_template_form_view
msgid "Package types"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_stock_lot__packaging_units
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_stock_quant__packaging_units
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.view_stock_quant_form_editable
msgid "Packaging Units"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model,name:stock_lot_product_packaging.model_product_template
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_stock_package_type__product_tmpl_id
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.stock_package_type_search_view
msgid "Product"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_product_product__product_package_ids
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.product_normal_form_view
msgid "Product Packages"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model.fields,field_description:stock_lot_product_packaging.field_stock_lot__product_packaging_id
msgid "Product Packaging"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model,name:stock_lot_product_packaging.model_product_product
msgid "Product Variant"
msgstr ""

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

#. module: stock_lot_product_packaging
#: model_terms:ir.ui.view,arch_db:stock_lot_product_packaging.stock_package_type_search_view
msgid "Search Package Types"
msgstr ""

#. module: stock_lot_product_packaging
#: model:ir.model,name:stock_lot_product_packaging.model_stock_package_type
msgid "Stock package type"
msgstr ""
5 changes: 5 additions & 0 deletions stock_lot_product_packaging/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from . import product_product
from . import product_template
from . import stock_lot
from . import stock_package_type
from . import stock_quant
Loading

0 comments on commit 655aa41

Please sign in to comment.