diff --git a/mrp_subcontracting_resupply_link/README.rst b/mrp_subcontracting_resupply_link/README.rst new file mode 100644 index 000000000..bf3d19c65 --- /dev/null +++ b/mrp_subcontracting_resupply_link/README.rst @@ -0,0 +1,98 @@ +==================================================== +Links between subcontracting PO and resupply picking +==================================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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-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/14.0/mrp_subcontracting_resupply_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_subcontracting_resupply_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 adds convenient links between a purchase order with subcontracting products +and their raw materials resupply pickings. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +#. Go to *Manufacturing > Products > Products* and create a new subcontracted product with some Vendor (Purchase tab). +#. Go to *Manufacturing > Products > Products* and create a new one with "Resupply Subcontractor on Order" route checked. [Component] +#. Go to *Manufacturing > Products > Bill of materials* and create a new one with type = "Subcontracting" and set the subcontractor and component previously created. +#. Go to *Purchase > Orders > Requests for Quotation* and create a new one to the subcontractor and add subcontracted product. +#. Click on "Confirm order" button. +#. A message with the link to the resupply(ies) is added in the purchase order. +#. A "Resupply(ies)" smart-button is also displayed in the purchase order. +#. Clicking on it, it navigates to the linked pickings. +#. A message with the link to the PO is added in the resupply picking. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Tecnativa + +Contributors +~~~~~~~~~~~~ + +* `Tecnativa `_: + + * Víctor Martínez + * Pedro M. Baeza + +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-victoralmau| image:: https://github.com/victoralmau.png?size=40px + :target: https://github.com/victoralmau + :alt: victoralmau + +Current `maintainer `__: + +|maintainer-victoralmau| + +This module is part of the `OCA/manufacture `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mrp_subcontracting_resupply_link/__init__.py b/mrp_subcontracting_resupply_link/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/mrp_subcontracting_resupply_link/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/mrp_subcontracting_resupply_link/__manifest__.py b/mrp_subcontracting_resupply_link/__manifest__.py new file mode 100644 index 000000000..7bdbbc671 --- /dev/null +++ b/mrp_subcontracting_resupply_link/__manifest__.py @@ -0,0 +1,14 @@ +# Copyright 2022 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + "name": "Links between subcontracting PO and resupply picking", + "version": "14.0.1.0.0", + "category": "Manufacturing", + "website": "https://github.com/OCA/manufacture", + "author": "Tecnativa, Odoo Community Association (OCA)", + "license": "AGPL-3", + "depends": ["mrp_subcontracting", "purchase"], + "installable": True, + "data": ["views/stock_picking_view.xml", "views/purchase_order_view.xml"], + "maintainers": ["victoralmau"], +} diff --git a/mrp_subcontracting_resupply_link/i18n/es.po b/mrp_subcontracting_resupply_link/i18n/es.po new file mode 100644 index 000000000..f274368b7 --- /dev/null +++ b/mrp_subcontracting_resupply_link/i18n/es.po @@ -0,0 +1,86 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_subcontracting_resupply_link +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-08-22 06:21+0000\n" +"PO-Revision-Date: 2022-08-22 08:22+0200\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 3.0.1\n" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_purchase_order__display_name +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_stock_picking__display_name +msgid "Display Name" +msgstr "Nombre mostrado" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_purchase_order__id +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_stock_picking__id +msgid "ID" +msgstr "ID" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_purchase_order____last_update +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_stock_picking____last_update +msgid "Last Modified on" +msgstr "Última modificación el" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model,name:mrp_subcontracting_resupply_link.model_purchase_order +msgid "Purchase Order" +msgstr "Pedido de compra" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_purchase_order__subcontracting_resupply_count +msgid "Resupply count" +msgstr "Total reabastecimientos" + +#. module: mrp_subcontracting_resupply_link +#: model_terms:ir.ui.view,arch_db:mrp_subcontracting_resupply_link.purchase_order_view_form_inherit +msgid "Resupply(ies)" +msgstr "Reabastecimiento(s)" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_purchase_order__subcontracting_resupply_ids +msgid "Resupplys" +msgstr "Reabastecimientos" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_stock_picking__subcontracting_purchase_order_id +msgid "Subcontracting order" +msgstr "Pedido de subcontratación" + +#. module: mrp_subcontracting_resupply_link +#: code:addons/mrp_subcontracting_resupply_link/models/purchase_order.py:0 +#, python-format +msgid "" +"The resupply picking %(name)s has been created" +msgstr "" +"El albarán de reabastecimiento %(name)s ha sido creado" + +#. module: mrp_subcontracting_resupply_link +#: code:addons/mrp_subcontracting_resupply_link/models/purchase_order.py:0 +#, python-format +msgid "" +"This is for supplying raw material for %(name)s" +msgstr "" +"Esto es para suministrar materia prima para %(name)s" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model,name:mrp_subcontracting_resupply_link.model_stock_picking +msgid "Transfer" +msgstr "Albarán" diff --git a/mrp_subcontracting_resupply_link/i18n/mrp_subcontracting_resupply_link.pot b/mrp_subcontracting_resupply_link/i18n/mrp_subcontracting_resupply_link.pot new file mode 100644 index 000000000..583c335a3 --- /dev/null +++ b/mrp_subcontracting_resupply_link/i18n/mrp_subcontracting_resupply_link.pot @@ -0,0 +1,80 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_subcontracting_resupply_link +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-08-22 06:21+0000\n" +"PO-Revision-Date: 2022-08-22 06:21+0000\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_subcontracting_resupply_link +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_purchase_order__display_name +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_stock_picking__display_name +msgid "Display Name" +msgstr "" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_purchase_order__id +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_stock_picking__id +msgid "ID" +msgstr "" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_purchase_order____last_update +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_stock_picking____last_update +msgid "Last Modified on" +msgstr "" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model,name:mrp_subcontracting_resupply_link.model_purchase_order +msgid "Purchase Order" +msgstr "" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_purchase_order__subcontracting_resupply_count +msgid "Resupply count" +msgstr "" + +#. module: mrp_subcontracting_resupply_link +#: model_terms:ir.ui.view,arch_db:mrp_subcontracting_resupply_link.purchase_order_view_form_inherit +msgid "Resupply(ies)" +msgstr "" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_purchase_order__subcontracting_resupply_ids +msgid "Resupplys" +msgstr "" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model.fields,field_description:mrp_subcontracting_resupply_link.field_stock_picking__subcontracting_purchase_order_id +msgid "Subcontracting order" +msgstr "" + +#. module: mrp_subcontracting_resupply_link +#: code:addons/mrp_subcontracting_resupply_link/models/purchase_order.py:0 +#, python-format +msgid "" +"The resupply picking %(name)s has been created" +msgstr "" + +#. module: mrp_subcontracting_resupply_link +#: code:addons/mrp_subcontracting_resupply_link/models/purchase_order.py:0 +#, python-format +msgid "" +"This is for supplying raw material for %(name)s" +msgstr "" + +#. module: mrp_subcontracting_resupply_link +#: model:ir.model,name:mrp_subcontracting_resupply_link.model_stock_picking +msgid "Transfer" +msgstr "" diff --git a/mrp_subcontracting_resupply_link/models/__init__.py b/mrp_subcontracting_resupply_link/models/__init__.py new file mode 100644 index 000000000..0e3257d9b --- /dev/null +++ b/mrp_subcontracting_resupply_link/models/__init__.py @@ -0,0 +1,4 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import purchase_order +from . import stock_picking diff --git a/mrp_subcontracting_resupply_link/models/purchase_order.py b/mrp_subcontracting_resupply_link/models/purchase_order.py new file mode 100644 index 000000000..2c5a749fa --- /dev/null +++ b/mrp_subcontracting_resupply_link/models/purchase_order.py @@ -0,0 +1,81 @@ +# Copyright 2022 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import SUPERUSER_ID, _, api, fields, models + + +class PurchaseOrder(models.Model): + _inherit = "purchase.order" + + subcontracting_resupply_count = fields.Integer( + compute="_compute_subcontracting_resupply_ids", + string="Resupply count", + store=True, + ) + subcontracting_resupply_ids = fields.Many2many( + relation="stock_picking_resupply", + column1="purchase_id", + column2="picking_id", + comodel_name="stock.picking", + compute="_compute_subcontracting_resupply_ids", + string="Resupplys", + copy=False, + store=True, + ) + + @api.depends("picking_ids") + def _compute_subcontracting_resupply_ids(self): + for order in self: + pickings = False + order_pickings = order.picking_ids.filtered( + lambda x: x.state not in ("done", "cancel") + ) + moves = order_pickings.move_lines.filtered( + lambda x: x.is_subcontract and x.move_orig_ids + ) + if moves: + pickings = moves.mapped("move_orig_ids.production_id.picking_ids") + order.subcontracting_resupply_ids = pickings + order.subcontracting_resupply_count = len(pickings) if pickings else 0 + + def button_confirm(self): + _self = self.with_context(resupply_message_post=True) + return super(PurchaseOrder, _self).button_confirm() + + def _message_track_post_template(self, changes): + """We need to override this function with the previously used context + so that the message appears after mail.tracking record (state = purchase).""" + res = super()._message_track_post_template(changes) + if self.env.context.get("resupply_message_post") and changes == {"state"}: + self._resupply_message_post() + return res + + def _resupply_message_post(self): + for order in self: + for picking in order.subcontracting_resupply_ids: + body = _( + "This is for supplying raw material for " + "%(name)s" + ) % {"id": order.id, "name": order.name, "model": order._name} + picking.with_user(SUPERUSER_ID).message_post(body=body) + # purchase order message + body = _( + "The resupply picking " + "%(name)s" + " has been created" + ) % {"id": picking.id, "name": picking.name, "model": picking._name} + order.with_user(SUPERUSER_ID).message_post(body=body) + + def action_view_subcontracting_resupply(self): + action = self.env.ref("stock.action_picking_tree_all").sudo().read()[0] + picking_ids = self.mapped("subcontracting_resupply_ids") + if len(picking_ids) > 1: + action["domain"] = [("id", "in", picking_ids.ids)] + else: + action.update( + res_id=picking_ids.id, + view_mode="form", + view_id=False, + views=False, + ) + return action diff --git a/mrp_subcontracting_resupply_link/models/stock_picking.py b/mrp_subcontracting_resupply_link/models/stock_picking.py new file mode 100644 index 000000000..b3892f959 --- /dev/null +++ b/mrp_subcontracting_resupply_link/models/stock_picking.py @@ -0,0 +1,33 @@ +# Copyright 2022 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import api, fields, models + + +class StockPicking(models.Model): + _inherit = "stock.picking" + + subcontracting_purchase_order_id = fields.Many2one( + comodel_name="purchase.order", + compute="_compute_subcontracting_purchase_order_id", + store=True, + string="Subcontracting order", + ) + + @api.depends("move_lines", "move_lines.rule_id", "move_lines.move_dest_ids") + def _compute_subcontracting_purchase_order_id(self): + for item in self: + move_dests = item.move_lines.filtered( + lambda x: x.rule_id and x.move_dest_ids + ) + order_id = False + if move_dests: + productions = move_dests.mapped( + "move_dest_ids.raw_material_production_id" + ) + group = productions.picking_ids.group_id + moves = group.stock_move_ids.move_dest_ids.filtered( + lambda x: x.is_subcontract and x.purchase_line_id + ) + order_id = fields.first(moves.mapped("purchase_line_id.order_id")) + item.subcontracting_purchase_order_id = order_id diff --git a/mrp_subcontracting_resupply_link/readme/CONTRIBUTORS.rst b/mrp_subcontracting_resupply_link/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..5fb713053 --- /dev/null +++ b/mrp_subcontracting_resupply_link/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* `Tecnativa `_: + + * Víctor Martínez + * Pedro M. Baeza diff --git a/mrp_subcontracting_resupply_link/readme/DESCRIPTION.rst b/mrp_subcontracting_resupply_link/readme/DESCRIPTION.rst new file mode 100644 index 000000000..a9a3afd88 --- /dev/null +++ b/mrp_subcontracting_resupply_link/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module adds convenient links between a purchase order with subcontracting products +and their raw materials resupply pickings. diff --git a/mrp_subcontracting_resupply_link/readme/USAGE.rst b/mrp_subcontracting_resupply_link/readme/USAGE.rst new file mode 100644 index 000000000..f9f2a80b3 --- /dev/null +++ b/mrp_subcontracting_resupply_link/readme/USAGE.rst @@ -0,0 +1,9 @@ +#. Go to *Manufacturing > Products > Products* and create a new subcontracted product with some Vendor (Purchase tab). +#. Go to *Manufacturing > Products > Products* and create a new one with "Resupply Subcontractor on Order" route checked. [Component] +#. Go to *Manufacturing > Products > Bill of materials* and create a new one with type = "Subcontracting" and set the subcontractor and component previously created. +#. Go to *Purchase > Orders > Requests for Quotation* and create a new one to the subcontractor and add subcontracted product. +#. Click on "Confirm order" button. +#. A message with the link to the resupply(ies) is added in the purchase order. +#. A "Resupply(ies)" smart-button is also displayed in the purchase order. +#. Clicking on it, it navigates to the linked pickings. +#. A message with the link to the PO is added in the resupply picking. diff --git a/mrp_subcontracting_resupply_link/static/description/icon.png b/mrp_subcontracting_resupply_link/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/mrp_subcontracting_resupply_link/static/description/icon.png differ diff --git a/mrp_subcontracting_resupply_link/static/description/index.html b/mrp_subcontracting_resupply_link/static/description/index.html new file mode 100644 index 000000000..b70ff5f75 --- /dev/null +++ b/mrp_subcontracting_resupply_link/static/description/index.html @@ -0,0 +1,441 @@ + + + + + + +Links between subcontracting PO and resupply picking + + + + + + diff --git a/mrp_subcontracting_resupply_link/tests/__init__.py b/mrp_subcontracting_resupply_link/tests/__init__.py new file mode 100644 index 000000000..a42bfe28c --- /dev/null +++ b/mrp_subcontracting_resupply_link/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_mrp_subcontracting_resupply_link diff --git a/mrp_subcontracting_resupply_link/tests/test_mrp_subcontracting_resupply_link.py b/mrp_subcontracting_resupply_link/tests/test_mrp_subcontracting_resupply_link.py new file mode 100644 index 000000000..ab57a4203 --- /dev/null +++ b/mrp_subcontracting_resupply_link/tests/test_mrp_subcontracting_resupply_link.py @@ -0,0 +1,86 @@ +# Copyright 2022 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from odoo import SUPERUSER_ID +from odoo.tests import Form, new_test_user + +from odoo.addons.test_mail.tests.common import TestMailCommon + + +class TestMrpSubcontractingResupplyLink(TestMailCommon): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.subcontractor_mto = cls.env.ref( + "mrp_subcontracting.route_resupply_subcontractor_mto" + ) + cls.supplier = cls.env["res.partner"].create({"name": "Mr Odoo"}) + cls.product = cls.env["product.product"].create( + { + "name": "Test product", + "type": "product", + "seller_ids": [ + ( + 0, + 0, + { + "name": cls.supplier.id, + "min_qty": 1, + "price": 10, + }, + ) + ], + } + ) + cls.component = cls.env["product.product"].create( + { + "name": "Test Component", + "route_ids": [(6, 0, [cls.subcontractor_mto.id])], + } + ) + cls.bom = cls._create_mrp_bom(cls) + cls.purchase_order = cls._create_purchase_order(cls) + cls.user = new_test_user( + cls.env, + login="test_user", + groups="purchase.group_purchase_user,mrp.group_mrp_user,mrp.group_mrp_manager", + ) + + def _create_mrp_bom(self): + mrp_bom_form = Form(self.env["mrp.bom"]) + mrp_bom_form.product_tmpl_id = self.product.product_tmpl_id + mrp_bom_form.type = "subcontract" + mrp_bom_form.subcontractor_ids.add(self.supplier) + with mrp_bom_form.bom_line_ids.new() as line_form: + line_form.product_id = self.component + line_form.product_qty = 1 + return mrp_bom_form.save() + + def _create_purchase_order(self): + order_form = Form(self.env["purchase.order"]) + order_form.partner_id = self.supplier + with order_form.order_line.new() as line_form: + line_form.product_id = self.product + line_form.product_qty = 1 + return order_form.save() + + def test_purchase_order_process(self): + self.purchase_order.with_user(self.user).button_confirm() + production = self.env["mrp.production"].search([("bom_id", "=", self.bom.id)]) + res = self.purchase_order.action_view_subcontracting_resupply() + self.assertEqual(res["res_id"], production.picking_ids.id) + self.assertEqual( + production.picking_ids.subcontracting_purchase_order_id, + self.purchase_order, + ) + # Force flush tracking and check if messages have been created + po_old_messages = self.purchase_order.message_ids + picking_old_messages = production.picking_ids.message_ids + self.flush_tracking() + # purchase order message + new_messages = self.purchase_order.message_ids - po_old_messages + message = new_messages.filtered(lambda x: x.create_uid.id == SUPERUSER_ID) + self.assertTrue(production.picking_ids.name in message.body) + # picking order message (subcontracting_resupply_ids) + new_messages = production.picking_ids.message_ids - picking_old_messages + message = new_messages.filtered(lambda x: x.create_uid.id == SUPERUSER_ID) + self.assertTrue(self.purchase_order.name in message.body) diff --git a/mrp_subcontracting_resupply_link/views/purchase_order_view.xml b/mrp_subcontracting_resupply_link/views/purchase_order_view.xml new file mode 100644 index 000000000..fc8f00308 --- /dev/null +++ b/mrp_subcontracting_resupply_link/views/purchase_order_view.xml @@ -0,0 +1,28 @@ + + + purchase.order.form.inherit + purchase.order + + + + + + + + diff --git a/mrp_subcontracting_resupply_link/views/stock_picking_view.xml b/mrp_subcontracting_resupply_link/views/stock_picking_view.xml new file mode 100644 index 000000000..8520215cb --- /dev/null +++ b/mrp_subcontracting_resupply_link/views/stock_picking_view.xml @@ -0,0 +1,16 @@ + + + stock.picking.form + stock.picking + + + + + + + + + diff --git a/setup/mrp_subcontracting_resupply_link/odoo/addons/mrp_subcontracting_resupply_link b/setup/mrp_subcontracting_resupply_link/odoo/addons/mrp_subcontracting_resupply_link new file mode 120000 index 000000000..1dcc34db1 --- /dev/null +++ b/setup/mrp_subcontracting_resupply_link/odoo/addons/mrp_subcontracting_resupply_link @@ -0,0 +1 @@ +../../../../mrp_subcontracting_resupply_link \ No newline at end of file diff --git a/setup/mrp_subcontracting_resupply_link/setup.py b/setup/mrp_subcontracting_resupply_link/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/mrp_subcontracting_resupply_link/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)