From 15e043d61834daa64dd6240e34a341c7070d1f0c Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Wed, 19 Feb 2025 14:11:42 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D0=BE=D0=B5=20=D0=BD=D0=B0=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __init__.py | 0 __manifest__.py | 21 +++++++++++++++++++ i18n/mrp_subcontracting_repair.pot | 15 +++++++++++++ security/ir.model.access.csv | 2 ++ .../mrp_subcontracting_repair_security.xml | 17 +++++++++++++++ 5 files changed, 55 insertions(+) create mode 100644 __init__.py create mode 100644 __manifest__.py create mode 100644 i18n/mrp_subcontracting_repair.pot create mode 100644 security/ir.model.access.csv create mode 100644 security/mrp_subcontracting_repair_security.xml 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), + ] + + + +