Add module mrp_no_product_template_menu

This commit is contained in:
Alexis de Lattre
2016-12-12 13:36:52 +01:00
committed by David Beal
parent e5072cbb63
commit 730a3e99bf
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'MRP No Product Template Menu',
'version': '10.0.1.0.0',
'category': 'Manufacturing',
'license': 'AGPL-3',
'summary': "Remplace product.template menu entries by product.product menu entries",
'description': """
MRP No Product Template
=======================
This module replaces the menu entry for product.template by menu entries for product.product in the *Manufacturing > Master Data* menu.
This module also switches to the tree view by default for Product menu entries, instead of the kanban view.
This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['mrp'],
'data': ['mrp_view.xml'],
'installable': True,
}

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="product_product_action_mrp" model="ir.actions.act_window">
<field name="name">Products</field>
<field name="res_model">product.product</field>
<field name="view_mode">tree,form,kanban</field>
<field name="context">{'search_default_consumable': 1, 'default_type': 'product'}</field>
</record>
<record id="mrp.menu_mrp_product_form" model="ir.ui.menu">
<field name="action" ref="product_product_action_mrp"/>
</record>
</odoo>