Skip to content

Commit

Permalink
Merge PR #1466 into 18.0
Browse files Browse the repository at this point in the history
Signed-off-by grindtildeath
  • Loading branch information
OCA-git-bot committed Feb 12, 2025
2 parents 3750232 + bd96ff8 commit 5b91458
Show file tree
Hide file tree
Showing 23 changed files with 1,571 additions and 0 deletions.
104 changes: 104 additions & 0 deletions mrp_package_propagation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
=======================
MRP Package Propagation
=======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:09e4b3efb7baa9dd0cb4537f484e546275e9be2c5d9cd653d207b2084f63f977
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fmanufacture-lightgray.png?logo=github
:target: https://github.com/OCA/manufacture/tree/18.0/mrp_package_propagation
:alt: OCA/manufacture
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/manufacture-18-0/manufacture-18-0-mrp_package_propagation
: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/manufacture&target_branch=18.0
:alt: Try me on Runboat

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

Allow to propagate a package from a component to a finished product.

This is useful for instance if you want to keep the box of one of the
component (which could have already a label stuck on it) for your
finished product.

Two constraints:

- the component quantity has to be 1 unit
- the manufacturing order has to produce exactly the BoM quantity

This is to ensure we get only one package reserved for the given
component.

**Table of contents**

.. contents::
:local:

Usage
=====

On the BoM:

- enable the option "Package Propagation"
- flag one of the BoM line with "Propagate Package"

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/manufacture/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/manufacture/issues/new?body=module:%20mrp_package_propagation%0Aversion:%2018.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
------------

- Sébastien Alix <[email protected]>

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-sebalix| image:: https://github.com/sebalix.png?size=40px
:target: https://github.com/sebalix
:alt: sebalix

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

|maintainer-sebalix|

This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/18.0/mrp_package_propagation>`_ 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 mrp_package_propagation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
20 changes: 20 additions & 0 deletions mrp_package_propagation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
{
"name": "MRP Package Propagation",
"version": "18.0.1.0.0",
"development_status": "Beta",
"license": "AGPL-3",
"author": "Camptocamp, Odoo Community Association (OCA)",
"maintainers": ["sebalix"],
"summary": "Propagate a package from a component to a finished product",
"website": "https://github.com/OCA/manufacture",
"category": "Manufacturing",
"depends": ["mrp"],
"data": [
"views/mrp_bom.xml",
"views/mrp_production.xml",
],
"installable": True,
"application": False,
}
147 changes: 147 additions & 0 deletions mrp_package_propagation/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_package_propagation
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-22 20:33+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: none\n"
"Language: es\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: mrp_package_propagation
#: model:ir.model.fields,help:mrp_package_propagation.field_mrp_bom__package_propagation
msgid ""
"Allow to propagate the package from a component to the finished product."
msgstr "Permiten propagar el paquete de un componente al producto acabado."

#. module: mrp_package_propagation
#: model:ir.model,name:mrp_package_propagation.model_mrp_bom
msgid "Bill of Material"
msgstr "Lista de Material"

#. module: mrp_package_propagation
#: model:ir.model,name:mrp_package_propagation.model_mrp_bom_line
msgid "Bill of Material Line"
msgstr "Línea de Lista de Materiales"

#. module: mrp_package_propagation
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_bom__display_name
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_bom_line__display_name
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_production__display_name
#: model:ir.model.fields,field_description:mrp_package_propagation.field_stock_move__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: mrp_package_propagation
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_bom__display_package_propagation
msgid "Display Package Propagation"
msgstr "Propagación de Paquetes de Visualización"

#. module: mrp_package_propagation
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_bom_line__display_propagate_package
msgid "Display Propagate Package"
msgstr "Mostrar Paquete de Propagación"

#. module: mrp_package_propagation
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_bom__id
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_bom_line__id
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_production__id
#: model:ir.model.fields,field_description:mrp_package_propagation.field_stock_move__id
msgid "ID"
msgstr "ID (identificación)"

#. module: mrp_package_propagation
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_production__is_package_propagated
msgid "Is package propagated?"
msgstr "¿Se propaga el paquete?"

#. module: mrp_package_propagation
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_bom____last_update
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_bom_line____last_update
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_production____last_update
#: model:ir.model.fields,field_description:mrp_package_propagation.field_stock_move____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. module: mrp_package_propagation
#: code:addons/mrp_package_propagation/models/mrp_bom_line.py:0
#, python-format
msgid "Only one component can propagate its package to the finished product."
msgstr "Sólo un componente puede propagar su paquete al producto acabado."

#. module: mrp_package_propagation
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_bom__package_propagation
msgid "Package Propagation"
msgstr "Propagación de Paquetes"

#. module: mrp_package_propagation
#: model:ir.model.fields,help:mrp_package_propagation.field_mrp_production__is_package_propagated
msgid "Package is propagated from a component to the finished product."
msgstr "El envasado se propaga de un componente al producto acabado."

#. module: mrp_package_propagation
#: model:ir.model,name:mrp_package_propagation.model_mrp_production
msgid "Production Order"
msgstr "Orden de Producción"

#. module: mrp_package_propagation
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_bom_line__propagate_package
#: model:ir.model.fields,field_description:mrp_package_propagation.field_stock_move__propagate_package
msgid "Propagate Package"
msgstr "Paquete de Propagación"

#. module: mrp_package_propagation
#: model:ir.model.fields,field_description:mrp_package_propagation.field_mrp_production__propagated_package_id
msgid "Propagated package"
msgstr "Paquete propagado"

#. module: mrp_package_propagation
#: model:ir.model,name:mrp_package_propagation.model_stock_move
msgid "Stock Move"
msgstr "Movimiento de Existencias"

#. module: mrp_package_propagation
#: code:addons/mrp_package_propagation/models/mrp_production.py:0
#, python-format
msgid ""
"The BoM is propagating a package from one component.\n"
"As such, the manufacturing order is forced to produce the same quantity than the BoM: %s %s"
msgstr ""
"La lista de materiales está propagando un paquete de un componente.\n"
"Como tal, la orden de fabricación se ve obligada a producir la misma "
"cantidad que la LdM: %s %s"

#. module: mrp_package_propagation
#: model:ir.model.fields,help:mrp_package_propagation.field_mrp_production__propagated_package_id
msgid ""
"The BoM used on this manufacturing order is set to propagate package from "
"one of its components. The value will be computed once the corresponding "
"component is selected."
msgstr ""
"La lista de materiales utilizada en esta orden de producción está "
"configurada para propagar el paquete desde uno de sus componentes. El valor "
"se calculará una vez seleccionado el componente correspondiente."

#. module: mrp_package_propagation
#: code:addons/mrp_package_propagation/models/mrp_bom_line.py:0
#, python-format
msgid "The component propagating the package must consume 1 %s."
msgstr "El componente que propaga el paquete debe consumir 1 %s."

#. module: mrp_package_propagation
#: code:addons/mrp_package_propagation/models/mrp_bom.py:0
#, python-format
msgid ""
"With 'Package Propagation' enabled, a line has to be configured with the "
"'Propagate Package' option."
msgstr ""
"Con la \"Propagación de paquetes\" habilitada, hay que configurar una línea "
"con la opción \"Propagar paquete\"."
Loading

0 comments on commit 5b91458

Please sign in to comment.