Add module mrp_no_product_template_menu
This commit is contained in:
committed by
David Beal
parent
e5072cbb63
commit
730a3e99bf
1
mrp_no_product_template_menu/__init__.py
Normal file
1
mrp_no_product_template_menu/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
26
mrp_no_product_template_menu/__manifest__.py
Normal file
26
mrp_no_product_template_menu/__manifest__.py
Normal 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,
|
||||||
|
}
|
||||||
20
mrp_no_product_template_menu/mrp_view.xml
Normal file
20
mrp_no_product_template_menu/mrp_view.xml
Normal 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>
|
||||||
Reference in New Issue
Block a user