-
-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by LoisRForgeFlow
- Loading branch information
Showing
17 changed files
with
728 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import mrp_unbuild | ||
from . import stock_move |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.