Skip to content

Commit

Permalink
Merge PR #679 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Mar 13, 2023
2 parents cf47170 + b2e05f4 commit 163b4f9
Show file tree
Hide file tree
Showing 15 changed files with 803 additions and 0 deletions.
104 changes: 104 additions & 0 deletions edi_voxel_secondary_unit_oca/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
============================
Edi Voxel Secondary Unit Oca
============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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%2Fedi-lightgray.png?logo=github
:target: https://github.com/OCA/edi/tree/15.0/edi_voxel_secondary_unit_oca
:alt: OCA/edi
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/edi-15-0/edi-15-0-edi_voxel_secondary_unit_oca
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/226/15.0
:alt: Try me on Runbot

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

This module extends the functionality of 'Product Secondary Unit' module
to support Voxel Units of Measure codes in 'Secondary Units of measure'.

This is a base module for the following modules:

* edi_voxel_sale_secondary_unit
* edi_voxel_stock_picking_secondary_unit

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

#. Go to a *Product > General Information tab*.
#. Create or edit a "Secondary unit of measure".
#. Set the corresponding 'Voxel code'.

If 'Sale Order Secondary Unit' module is installed, you can create or
edit a "Secondary unit of measure" by going to
*Sales > Configuration > Products > Secondary Units of Measure*

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/edi/issues/new?body=module:%20edi_voxel_secondary_unit_oca%0Aversion:%2015.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
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`_:

* Ernesto Tejeda
* Pedro M. Baeza
* Sergio Teruel

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.

.. |maintainer-ernestotejeda| image:: https://github.com/ernestotejeda.png?size=40px
:target: https://github.com/ernestotejeda
:alt: ernestotejeda

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-ernestotejeda|

This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/15.0/edi_voxel_secondary_unit_oca>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions edi_voxel_secondary_unit_oca/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
16 changes: 16 additions & 0 deletions edi_voxel_secondary_unit_oca/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2021 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Edi Voxel Secondary Unit Oca",
"summary": "Add Voxel UoM code to Secondary UoM model",
"version": "15.0.1.0.0",
"category": "Hidden",
"website": "https://github.com/OCA/edi",
"author": "Tecnativa, Odoo Community Association (OCA)",
"maintainers": ["ernestotejeda"],
"license": "AGPL-3",
"depends": ["product_secondary_unit", "edi_voxel_oca"],
"data": ["views/product_secondary_unit_views.xml"],
"installable": True,
"auto_install": True,
}
84 changes: 84 additions & 0 deletions edi_voxel_secondary_unit_oca/i18n/edi_voxel_secondary_unit.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * edi_voxel_secondary_unit_oca
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.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: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__cajas
msgid "Boxes"
msgstr ""

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__contenedores
msgid "Containers"
msgstr ""

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__horas
msgid "Hours"
msgstr ""

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__kgs
msgid "Kgs"
msgstr ""

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__lbs
msgid "Lbs"
msgstr ""

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__lts
msgid "Liters"
msgstr ""

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__metros
msgid "Meters"
msgstr ""

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__otros
msgid "Others"
msgstr ""

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__bultos
msgid "Packages"
msgstr ""

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__palets
msgid "Pallets"
msgstr ""

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model,name:edi_voxel_secondary_unit_oca.model_product_secondary_unit
msgid "Product Secondary Unit"
msgstr ""

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__metroscuadrados
msgid "Square meters"
msgstr ""

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__unidades
msgid "Units"
msgstr ""

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields,field_description:edi_voxel_secondary_unit_oca.field_product_secondary_unit__voxel_code
msgid "Voxel Code"
msgstr ""
88 changes: 88 additions & 0 deletions edi_voxel_secondary_unit_oca/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * edi_voxel_secondary_unit_oca
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-04-02 22:57+0000\n"
"PO-Revision-Date: 2021-04-02 19:04-0400\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Poedit 2.3\n"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__cajas
msgid "Boxes"
msgstr "Cajas"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__contenedores
msgid "Containers"
msgstr "Contenedores"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__horas
msgid "Hours"
msgstr "Horas"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__kgs
msgid "Kgs"
msgstr "Kgs"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__lbs
msgid "Lbs"
msgstr "Lbs"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__lts
msgid "Liters"
msgstr "Lts"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__metros
msgid "Meters"
msgstr "Metros"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__otros
msgid "Others"
msgstr "Otros"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__bultos
msgid "Packages"
msgstr "Bultos"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__palets
msgid "Pallets"
msgstr "Palets"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model,name:edi_voxel_secondary_unit_oca.model_product_secondary_unit
msgid "Product Secondary Unit"
msgstr "Unidad secundaria del producto"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__metroscuadrados
msgid "Square meters"
msgstr "Metros Cuadrados"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields.selection,name:edi_voxel_secondary_unit_oca.selection__product_secondary_unit__voxel_code__unidades
msgid "Units"
msgstr "Unidades"

#. module: edi_voxel_secondary_unit_oca
#: model:ir.model.fields,field_description:edi_voxel_secondary_unit_oca.field_product_secondary_unit__voxel_code
msgid "Voxel Code"
msgstr "Código Voxel"
3 changes: 3 additions & 0 deletions edi_voxel_secondary_unit_oca/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import product_secondary_unit
12 changes: 12 additions & 0 deletions edi_voxel_secondary_unit_oca/models/product_secondary_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2021 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models

from odoo.addons.edi_voxel_oca.models.uom_uom import VOXEL_CODE


class ProductSecondaryUnit(models.Model):
_inherit = "product.secondary.unit"

voxel_code = fields.Selection(selection=VOXEL_CODE)
5 changes: 5 additions & 0 deletions edi_voxel_secondary_unit_oca/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* `Tecnativa <https://www.tecnativa.com>`_:

* Ernesto Tejeda
* Pedro M. Baeza
* Sergio Teruel
7 changes: 7 additions & 0 deletions edi_voxel_secondary_unit_oca/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This module extends the functionality of 'Product Secondary Unit' module
to support Voxel Units of Measure codes in 'Secondary Units of measure'.

This is a base module for the following modules:

* edi_voxel_sale_secondary_unit
* edi_voxel_stock_picking_secondary_unit
9 changes: 9 additions & 0 deletions edi_voxel_secondary_unit_oca/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
To use this module, you need to:

#. Go to a *Product > General Information tab*.
#. Create or edit a "Secondary unit of measure".
#. Set the corresponding 'Voxel code'.

If 'Sale Order Secondary Unit' module is installed, you can create or
edit a "Secondary unit of measure" by going to
*Sales > Configuration > Products > Secondary Units of Measure*
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 163b4f9

Please sign in to comment.