Начальное наполнение
This commit is contained in:
parent
ba8acf199a
commit
15e043d618
0
__init__.py
Normal file
0
__init__.py
Normal file
21
__manifest__.py
Normal file
21
__manifest__.py
Normal 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',
|
||||||
|
}
|
15
i18n/mrp_subcontracting_repair.pot
Normal file
15
i18n/mrp_subcontracting_repair.pot
Normal 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"
|
2
security/ir.model.access.csv
Normal file
2
security/ir.model.access.csv
Normal 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
|
|
17
security/mrp_subcontracting_repair_security.xml
Normal file
17
security/mrp_subcontracting_repair_security.xml
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user