diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/__manifest__.py b/__manifest__.py new file mode 100644 index 0000000..5cc94a7 --- /dev/null +++ b/__manifest__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +{ + 'name': 'MRP Subcontracting Repair', + 'version': '1.0', + 'category': 'Manufacturing/Repair', + 'description': """ +Bridge module between MRP subcontracting and Repair + """, + 'depends': [ + 'mrp_subcontracting', 'repair' + ], + 'data': [ + 'security/ir.model.access.csv', + 'security/mrp_subcontracting_repair_security.xml', + ], + 'installable': True, + 'auto_install': True, + 'license': 'LGPL-3', +} diff --git a/i18n/mrp_subcontracting_repair.pot b/i18n/mrp_subcontracting_repair.pot new file mode 100644 index 0000000..06d842d --- /dev/null +++ b/i18n/mrp_subcontracting_repair.pot @@ -0,0 +1,15 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-10-26 21:55+0000\n" +"PO-Revision-Date: 2023-10-26 21:55+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" diff --git a/security/ir.model.access.csv b/security/ir.model.access.csv new file mode 100644 index 0000000..8c4c99c --- /dev/null +++ b/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_subcontracting_portal_repair_move,subcontracting.portal.repair_move,repair.model_stock_move,base.group_portal,1,0,0,0 diff --git a/security/mrp_subcontracting_repair_security.xml b/security/mrp_subcontracting_repair_security.xml new file mode 100644 index 0000000..bc3b6db --- /dev/null +++ b/security/mrp_subcontracting_repair_security.xml @@ -0,0 +1,17 @@ + + + + + Repair Line Subcontractor + + [ + '|', + '|', + ('product_id', 'in', user.partner_id.bom_ids.product_id.ids), + ('product_id', 'in', user.partner_id.bom_ids.product_tmpl_id.product_variant_ids.ids), + ('product_id', 'in', user.partner_id.bom_ids.bom_line_ids.product_id.ids), + ] + + + +