From 730a3e99bf80fe88e4c2a1b422e90a86cab76a76 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 12 Dec 2016 13:36:52 +0100 Subject: [PATCH] Add module mrp_no_product_template_menu --- mrp_no_product_template_menu/__init__.py | 1 + mrp_no_product_template_menu/__manifest__.py | 26 ++++++++++++++++++++ mrp_no_product_template_menu/mrp_view.xml | 20 +++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 mrp_no_product_template_menu/__init__.py create mode 100644 mrp_no_product_template_menu/__manifest__.py create mode 100644 mrp_no_product_template_menu/mrp_view.xml diff --git a/mrp_no_product_template_menu/__init__.py b/mrp_no_product_template_menu/__init__.py new file mode 100644 index 0000000..40a96af --- /dev/null +++ b/mrp_no_product_template_menu/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/mrp_no_product_template_menu/__manifest__.py b/mrp_no_product_template_menu/__manifest__.py new file mode 100644 index 0000000..2df7c38 --- /dev/null +++ b/mrp_no_product_template_menu/__manifest__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# © 2016 Akretion (Alexis de Lattre ) +# 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 . + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['mrp'], + 'data': ['mrp_view.xml'], + 'installable': True, +} diff --git a/mrp_no_product_template_menu/mrp_view.xml b/mrp_no_product_template_menu/mrp_view.xml new file mode 100644 index 0000000..f875d15 --- /dev/null +++ b/mrp_no_product_template_menu/mrp_view.xml @@ -0,0 +1,20 @@ + + + + + + + Products + product.product + tree,form,kanban + {'search_default_consumable': 1, 'default_type': 'product'} + + + + + + +