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

[16.0][MIG] edi_voxel_stock_picking_secondary_unit_oca: Migration to 16.0 #1121

Open
wants to merge 7 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ addon | version | maintainers | summary
[base_wamas_ubl](base_wamas_ubl/) | 16.0.1.17.0 | | Base module to aggregate WAMAS - UBL features.
[despatch_advice_import](despatch_advice_import/) | 16.0.1.2.0 | | Despatch Advice import
[despatch_advice_import_ubl](despatch_advice_import_ubl/) | 16.0.1.1.0 | | Import Despatch Advice files
[edi_voxel_stock_picking_secondary_unit_oca](edi_voxel_stock_picking_secondary_unit_oca/) | 16.0.1.0.0 | [![ernestotejeda](https://github.com/ernestotejeda.png?size=30px)](https://github.com/ernestotejeda) [![macagua](https://github.com/macagua.png?size=30px)](https://github.com/macagua) | Export Secondary UoMs Voxel Code in picking Voxel documents
[pdf_helper](pdf_helper/) | 16.0.1.1.0 | [![simahawk](https://github.com/simahawk.png?size=30px)](https://github.com/simahawk) [![alexis-via](https://github.com/alexis-via.png?size=30px)](https://github.com/alexis-via) | Provides helpers to work w/ PDFs
[sale_order_import](sale_order_import/) | 16.0.1.2.0 | | Import RFQ or sale orders from files
[sale_order_import_edifact](sale_order_import_edifact/) | 16.0.1.1.0 | [![rmorant](https://github.com/rmorant.png?size=30px)](https://github.com/rmorant) | EDIFACT/D96A Order
Expand Down
109 changes: 109 additions & 0 deletions edi_voxel_stock_picking_secondary_unit_oca/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
==================================
Voxel stock picking secondary unit
==================================

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

.. |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-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/16.0/edi_voxel_stock_picking_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-16-0/edi-16-0-edi_voxel_stock_picking_secondary_unit_oca
: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/edi&target_branch=16.0
:alt: Try me on Runboat

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

This module extends the functionality of 'Voxel stock picking' module
to match secondary units of measure instead of standard units of measure
during the stock picking sending process.

During the process of a stock picking sending to Voxel, for each picking
move line, the following flow is followed:

* If 'secondary unit of measure' is set, this will be the unit of
measure to be sent.
* If 'secondary unit of measure' is not set, standard quantity
and standard unit of measure will be send.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you don't need to do anything. Sending process is
the same as in the 'Voxel stock picking' module.

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/edi/issues/new?body=module:%20edi_voxel_stock_picking_secondary_unit_oca%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
~~~~~~~

* Tecnativa
* Guavana

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

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

* Ernesto Tejeda
* Pedro M. Baeza
* Sergio Teruel

* `Guavana <https://guavana.com>`_:

* Leonardo J. Caballero G.

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/16.0/edi_voxel_stock_picking_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_stock_picking_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 reports
18 changes: 18 additions & 0 deletions edi_voxel_stock_picking_secondary_unit_oca/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2021 Tecnativa - Ernesto Tejeda
# Copyright 2024, 2025 Guavana - Leonardo J. Caballero G.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Voxel stock picking secondary unit",
"summary": "Export Secondary UoMs Voxel Code in picking Voxel documents",
"version": "16.0.1.0.0",
"category": "Warehouse Management",
"website": "https://github.com/OCA/edi",
"author": "Tecnativa, Guavana, Odoo Community Association (OCA)",
"maintainers": ["ernestotejeda"],
"license": "AGPL-3",
"depends": [
"sale_stock_secondary_unit",
"edi_voxel_secondary_unit_oca",
"edi_voxel_stock_picking_oca",
],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * edi_voxel_stock_picking_secondary_unit_oca
#
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: edi_voxel_stock_picking_secondary_unit_oca
#: model:ir.model,name:edi_voxel_stock_picking_secondary_unit_oca.model_report_edi_voxel_stock_picking_oca_template_voxel_picking
msgid "Edi Voxel Stock picking Report"
msgstr ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
* `Tecnativa <https://www.tecnativa.com>`_:

* Ernesto Tejeda
* Pedro M. Baeza
* Sergio Teruel

* `Guavana <https://guavana.com>`_:

* Leonardo J. Caballero G.
11 changes: 11 additions & 0 deletions edi_voxel_stock_picking_secondary_unit_oca/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
This module extends the functionality of 'Voxel stock picking' module
to match secondary units of measure instead of standard units of measure
during the stock picking sending process.

During the process of a stock picking sending to Voxel, for each picking
move line, the following flow is followed:

* If 'secondary unit of measure' is set, this will be the unit of
measure to be sent.
* If 'secondary unit of measure' is not set, standard quantity
and standard unit of measure will be send.
2 changes: 2 additions & 0 deletions edi_voxel_stock_picking_secondary_unit_oca/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
To use this module, you don't need to do anything. Sending process is
the same as in the 'Voxel stock picking' module.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import report_voxel_picking
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2019 Tecnativa - Ernesto Tejeda
# Copyright 2024, 2025 Guavana - Leonardo J. Caballero G.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models


class ReportVoxelPicking(models.AbstractModel):
_inherit = "report.edi_voxel_stock_picking_oca.template_voxel_picking"

def _get_product_data(self, line):
res = super()._get_product_data(line)
if line.secondary_uom_id and line.secondary_uom_id.voxel_code:
res.update(
Qty=str(line.secondary_uom_qty),
MU=line.secondary_uom_id.voxel_code,
)
return res
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading