Начальное наполнение

This commit is contained in:
parent ba8acf199a
commit 15e043d618
5 changed files with 55 additions and 0 deletions

0
__init__.py Normal file
View File

21
__manifest__.py Normal file
View File

@ -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',
}

View File

@ -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"

View File

@ -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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_subcontracting_portal_repair_move subcontracting.portal.repair_move repair.model_stock_move base.group_portal 1 0 0 0

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="repair_line_subcontracting_rule" model="ir.rule">
<field name="name">Repair Line Subcontractor</field>
<field name="model_id" ref="repair.model_stock_move"/>
<field name="domain_force">[
'|',
'|',
('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),
]</field>
<field name="groups" eval="[(4, ref('base.group_portal'))]"/>
</record>
</odoo>