Initialize v18 branch
Rename *_usability modules to *_usability_akretion
This commit is contained in:
1
mrp_subcontracting_usability_akretion/__init__.py
Normal file
1
mrp_subcontracting_usability_akretion/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import models
|
||||
19
mrp_subcontracting_usability_akretion/__manifest__.py
Normal file
19
mrp_subcontracting_usability_akretion/__manifest__.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Copyright 2023 Akretion (http://www.akretion.com)
|
||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
{
|
||||
'name': 'MRP Subcontracting Usability',
|
||||
'version': '16.0.1.0.0',
|
||||
'category': 'Manufacturing',
|
||||
'license': 'AGPL-3',
|
||||
'summary': 'Usability improvements on mrp_subcontracting',
|
||||
'author': 'Akretion',
|
||||
'website': 'https://github.com/akretion/odoo-usability',
|
||||
'depends': ['mrp_subcontracting', 'stock_usability'],
|
||||
'data': [
|
||||
'views/mrp_bom.xml',
|
||||
'views/stock_warehouse.xml',
|
||||
],
|
||||
'installable': False,
|
||||
}
|
||||
21
mrp_subcontracting_usability_akretion/i18n/fr.po
Normal file
21
mrp_subcontracting_usability_akretion/i18n/fr.po
Normal file
@@ -0,0 +1,21 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * mrp_subcontracting_usability
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-07-07 14:38+0000\n"
|
||||
"PO-Revision-Date: 2024-07-07 14:38+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_usability
|
||||
#: model_terms:ir.ui.view,arch_db:mrp_subcontracting_usability.view_mrp_bom_filter
|
||||
msgid "Subcontracting"
|
||||
msgstr "Sous-traitance"
|
||||
1
mrp_subcontracting_usability_akretion/models/__init__.py
Normal file
1
mrp_subcontracting_usability_akretion/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import mrp_bom
|
||||
11
mrp_subcontracting_usability_akretion/models/mrp_bom.py
Normal file
11
mrp_subcontracting_usability_akretion/models/mrp_bom.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# Copyright 2024 Akretion France (https://www.akretion.com/)
|
||||
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class MrpBom(models.Model):
|
||||
_inherit = 'mrp.bom'
|
||||
|
||||
subcontractor_ids = fields.Many2many(domain=[('parent_id', '=', False)])
|
||||
22
mrp_subcontracting_usability_akretion/views/mrp_bom.xml
Normal file
22
mrp_subcontracting_usability_akretion/views/mrp_bom.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2023 Akretion France (http://www.akretion.com/)
|
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
<odoo>
|
||||
|
||||
|
||||
<record id="view_mrp_bom_filter" model="ir.ui.view">
|
||||
<field name="model">mrp.bom</field>
|
||||
<field name="inherit_id" ref="mrp.view_mrp_bom_filter"/>
|
||||
<field name="arch" type="xml">
|
||||
<filter name="phantom" position="after">
|
||||
<filter name="subcontract" domain="[('type', '=', 'subcontract')]" string="Subcontracting"/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2024 Akretion France (https://www.akretion.com/)
|
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
<odoo>
|
||||
|
||||
<record id="view_warehouse" model="ir.ui.view">
|
||||
<field name="model">stock.warehouse</field>
|
||||
<field name="inherit_id" ref="stock_usability.view_warehouse" />
|
||||
<field name="arch" type="xml">
|
||||
<group name="routes" position="inside">
|
||||
<field name="subcontracting_route_id"/>
|
||||
</group>
|
||||
<field name="out_type_id" position="after">
|
||||
<field name="subcontracting_type_id" readonly="1"/>
|
||||
<field name="subcontracting_resupply_type_id" readonly="1"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user