Merge pull request #351 from skukered/12.0-mig-mrp_bom_component_menu

[MIG] mrp_bom_component_menu: Migration to 12.0
This commit is contained in:
Lois Rilo
2019-04-23 10:27:45 +02:00
committed by GitHub
7 changed files with 214 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3
======================
MRP BOM Component Menu
======================
Adds a menu item *Bill of Material Components*.
Usage
=====
To use this module, you need to:
#. Go to menu *Manufacturing -> Products -> Bill of Material Components*
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/129/11.0
Bug Tracker
===========
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/manufacture/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.
Credits
=======
Images
------
* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.
Contributors
------------
* Jordi Ballester <jordi.ballester@eficent.com>
Maintainer
----------
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
To contribute to this module, please visit https://odoo-community.org.

View File

@@ -0,0 +1 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

View File

@@ -0,0 +1,20 @@
# Copyright 2017 Eficent Business and IT Consulting Services, S.L.
# (<http://www.eficent.com>)
# Copyright 2019 Rubén Bravo <rubenred18@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "MRP BOM Component Menu",
"version": "12.0.1.0.0",
"category": "Manufacturing",
"website": "https://github.com/OCA/manufacture",
"author": "Eficent,"
"Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"depends": [
"mrp",
],
"data": [
"views/mrp_bom_component_view.xml",
],
}

View File

@@ -0,0 +1,39 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_component_menu
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2018-12-09 10:43+0000\n"
"Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.net>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.3\n"
#. module: mrp_bom_component_menu
#: model:ir.actions.act_window,name:mrp_bom_component_menu.mrp_bom_form_action2
#: model:ir.ui.menu,name:mrp_bom_component_menu.menu_mrp_bom_form_action2
msgid "Bill of Material Components"
msgstr "Stücklistenkomponenten"
#. module: mrp_bom_component_menu
#: model:ir.actions.act_window,help:mrp_bom_component_menu.mrp_bom_form_action2
msgid "Bills of materials components are components and by-products\n"
" used to create master bills of materials. Use this menu to\n"
" search in which BoM a specific component is used."
msgstr ""
"Stücklistenkomponenten sind Komponenten und Nebenprodukte zur Erstellung von "
"Stammstücklisten.\n"
"Verwenden Sie dieses Menü, um herauszufinden, in welchen Stücklisten die "
"Komponente verwendet wird."
#. module: mrp_bom_component_menu
#: model:ir.actions.act_window,help:mrp_bom_component_menu.mrp_bom_form_action2
msgid "Click to add a component to a bill of material."
msgstr "Klicken Sie hier, um eine Komponente zur Stückliste hinzuzufügen."

View File

@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_component_menu
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \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_bom_component_menu
#: model:ir.actions.act_window,name:mrp_bom_component_menu.mrp_bom_form_action2
#: model:ir.ui.menu,name:mrp_bom_component_menu.menu_mrp_bom_form_action2
msgid "Bill of Material Components"
msgstr ""
#. module: mrp_bom_component_menu
#: model:ir.actions.act_window,help:mrp_bom_component_menu.mrp_bom_form_action2
msgid "Bills of materials components are components and by-products\n"
" used to create master bills of materials. Use this menu to\n"
" search in which BoM a specific component is used."
msgstr ""
#. module: mrp_bom_component_menu
#: model:ir.actions.act_window,help:mrp_bom_component_menu.mrp_bom_form_action2
msgid "Click to add a component to a bill of material."
msgstr ""

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2017 Eficent
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="mrp_bom_line_tree_view" model="ir.ui.view">
<field name="name">mrp.bom.line.tree.view</field>
<field name="model">mrp.bom.line</field>
<field name="arch" type="xml">
<tree string="Components">
<field name="bom_id" />
<field name="product_id"/>
<field name="product_qty"/>
<field name="routing_id"/>
</tree>
</field>
</record>
<record id="mrp_bom_form_action2" model="ir.actions.act_window">
<field name="name">Bill of Material Components</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.bom.line</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" eval="ref('mrp_bom_line_tree_view')"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a component to a bill of material.
</p>
<p>
Bills of materials components are components and by-products
used to create master bills of materials. Use this menu to
search in which BoM a specific component is used.
</p>
</field>
</record>
<record id="mrp_bom_line_view_filter" model="ir.ui.view">
<field name="name">mrp.bom.line.view.filter</field>
<field name="model">mrp.bom.line</field>
<field name="arch" type="xml">
<search string="Search Bill Of Material Components">
<field name="bom_id"/>
<field name="product_id"/>
<group expand="0" string="Group By...">
<filter name="bom" string="Bill Of Material" context="{'group_by':'bom_id'}"/>
<filter name="product" string="Product" context="{'group_by':'product_id'}"/>
<filter name="uom" string='Default Unit of Measure' context="{'group_by' : 'product_uom_id'}"/>
<filter name="Routings" string="Routings" context="{'group_by':'routing_id'}"/>
</group>
</search>
</field>
</record>
<menuitem
action="mrp_bom_form_action2"
id="menu_mrp_bom_form_action2"
parent="mrp.menu_mrp_bom"
sequence="14"
/>
</odoo>