Skip to content

Commit

Permalink
Merge PR #1073 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by LoisRForgeFlow
  • Loading branch information
OCA-git-bot committed Nov 23, 2023
2 parents 087af09 + d7d44eb commit 09a0555
Show file tree
Hide file tree
Showing 17 changed files with 728 additions and 0 deletions.
75 changes: 75 additions & 0 deletions mrp_unbuild_move_link/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
===========================================================
Stock moves of manufacturing orders added to unbuild orders
===========================================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github
:target: https://github.com/OCA/manufacture/tree/14.0/mrp_unbuild_move_link
:alt: OCA/manufacture
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/manufacture-14-0/manufacture-14-0-mrp_unbuild_move_link
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/129/14.0
:alt: Try me on Runbot

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

This module associates the id of the stock move of a manufacturing order to the stock move created from its unbuild order

**Table of contents**

.. contents::
:local:

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_unbuild_move_link%0Aversion:%2014.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
~~~~~~~

* ForgeFlow

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

* `ForgeFlow <https://www.forgeflow.com>`_:

* Thiago Mulero <thiago.mulero@forgeflow.com>

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/manufacture <https://github.com/OCA/manufacture/tree/14.0/mrp_unbuild_move_link>`_ 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_unbuild_move_link/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
14 changes: 14 additions & 0 deletions mrp_unbuild_move_link/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2022 ForgeFlow S.L. (https://www.forgeflow.com)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
{
"name": "Stock moves of manufacturing orders added to unbuild orders",
"version": "16.0.1.0.0",
"license": "LGPL-3",
"category": "Manufacture",
"summary": "Link the stock moves of manufacturing orders to the respective unbuild orders",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/manufacture",
"depends": ["mrp_account"],
"data": ["views/stock_move_views.xml"],
"installable": True,
}
55 changes: 55 additions & 0 deletions mrp_unbuild_move_link/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_unbuild_move_link
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-12-21 17:44+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\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.14.1\n"

#. module: mrp_unbuild_move_link
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_mrp_unbuild__display_name
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_stock_move__display_name
msgid "Display Name"
msgstr "Nome visualizzato"

#. module: mrp_unbuild_move_link
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_mrp_unbuild__id
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_stock_move__id
msgid "ID"
msgstr "ID"

#. module: mrp_unbuild_move_link
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_mrp_unbuild____last_update
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_stock_move____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"

#. module: mrp_unbuild_move_link
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_stock_move__origin_mrp_manufacture_move_id
msgid "Manufacturing order stock move"
msgstr "Movimento di magazzino ordine di produzione"

#. module: mrp_unbuild_move_link
#: model:ir.model,name:mrp_unbuild_move_link.model_stock_move
msgid "Stock Move"
msgstr "Movimento di magazzino"

#. module: mrp_unbuild_move_link
#: model:ir.model.fields,help:mrp_unbuild_move_link.field_stock_move__origin_mrp_manufacture_move_id
msgid "Stock move id of the previous manufacturing order"
msgstr "ID movimento di magazzino ordine produzione precedente"

#. module: mrp_unbuild_move_link
#: model:ir.model,name:mrp_unbuild_move_link.model_mrp_unbuild
msgid "Unbuild Order"
msgstr "Smonta ordine"
52 changes: 52 additions & 0 deletions mrp_unbuild_move_link/i18n/mrp_unbuild_move_link.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_unbuild_move_link
#
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: mrp_unbuild_move_link
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_mrp_unbuild__display_name
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_stock_move__display_name
msgid "Display Name"
msgstr ""

#. module: mrp_unbuild_move_link
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_mrp_unbuild__id
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_stock_move__id
msgid "ID"
msgstr ""

#. module: mrp_unbuild_move_link
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_mrp_unbuild____last_update
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_stock_move____last_update
msgid "Last Modified on"
msgstr ""

#. module: mrp_unbuild_move_link
#: model:ir.model.fields,field_description:mrp_unbuild_move_link.field_stock_move__origin_mrp_manufacture_move_id
msgid "Manufacturing order stock move"
msgstr ""

#. module: mrp_unbuild_move_link
#: model:ir.model,name:mrp_unbuild_move_link.model_stock_move
msgid "Stock Move"
msgstr ""

#. module: mrp_unbuild_move_link
#: model:ir.model.fields,help:mrp_unbuild_move_link.field_stock_move__origin_mrp_manufacture_move_id
msgid "Stock move id of the previous manufacturing order"
msgstr ""

#. module: mrp_unbuild_move_link
#: model:ir.model,name:mrp_unbuild_move_link.model_mrp_unbuild
msgid "Unbuild Order"
msgstr ""
2 changes: 2 additions & 0 deletions mrp_unbuild_move_link/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import mrp_unbuild
from . import stock_move
14 changes: 14 additions & 0 deletions mrp_unbuild_move_link/models/mrp_unbuild.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from odoo import models


class MrpUnbuild(models.Model):
_inherit = "mrp.unbuild"

def _generate_move_from_existing_move(
self, move, factor, location_id, location_dest_id
):
result = super(MrpUnbuild, self)._generate_move_from_existing_move(
move, factor, location_id, location_dest_id
)
result.origin_mrp_manufacture_move_id = move.id
return result
12 changes: 12 additions & 0 deletions mrp_unbuild_move_link/models/stock_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from odoo import fields, models


class StockMove(models.Model):
_inherit = "stock.move"

origin_mrp_manufacture_move_id = fields.Many2one(
"stock.move",
string="Manufacturing order stock move",
checkcompany=True,
help="Stock move id of the previous manufacturing order",
)
3 changes: 3 additions & 0 deletions mrp_unbuild_move_link/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* `ForgeFlow <https://www.forgeflow.com>`_:

* Thiago Mulero <thiago.mulero@forgeflow.com>
1 change: 1 addition & 0 deletions mrp_unbuild_move_link/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module associates the id of the stock move of a manufacturing order to the stock move created from its unbuild order
Binary file added mrp_unbuild_move_link/static/description/icon.png
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 09a0555

Please sign in to comment.