From 730a3e99bf80fe88e4c2a1b422e90a86cab76a76 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 12 Dec 2016 13:36:52 +0100 Subject: [PATCH 1/3] 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'} + + + + + + + From 82bc47905ba8e7348fc082da3a0d8f7ea562937d Mon Sep 17 00:00:00 2001 From: David Beal Date: Thu, 7 Mar 2019 10:39:42 +0100 Subject: [PATCH 2/3] MIGR v12 mrp_no_product_template --- mrp_no_product_template_menu/__init__.py | 1 - mrp_no_product_template_menu/__manifest__.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mrp_no_product_template_menu/__init__.py b/mrp_no_product_template_menu/__init__.py index 40a96af..e69de29 100644 --- a/mrp_no_product_template_menu/__init__.py +++ b/mrp_no_product_template_menu/__init__.py @@ -1 +0,0 @@ -# -*- coding: utf-8 -*- diff --git a/mrp_no_product_template_menu/__manifest__.py b/mrp_no_product_template_menu/__manifest__.py index 2df7c38..8353d1e 100644 --- a/mrp_no_product_template_menu/__manifest__.py +++ b/mrp_no_product_template_menu/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2016 Akretion (Alexis de Lattre ) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -7,7 +6,7 @@ 'version': '10.0.1.0.0', 'category': 'Manufacturing', 'license': 'AGPL-3', - 'summary': "Remplace product.template menu entries by product.product menu entries", + 'summary': "Replace product.template menu entries by product.product menu entries", 'description': """ MRP No Product Template ======================= @@ -20,7 +19,8 @@ This module has been written by Alexis de Lattre from Akretion Date: Thu, 7 Mar 2019 10:55:08 +0100 Subject: [PATCH 3/3] ADD module pos_no_product_template_menu --- mrp_no_product_template_menu/__manifest__.py | 13 +++++---- pos_no_product_template_menu/__init__.py | 0 pos_no_product_template_menu/__manifest__.py | 28 ++++++++++++++++++++ pos_no_product_template_menu/pos_view.xml | 16 +++++++++++ 4 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 pos_no_product_template_menu/__init__.py create mode 100644 pos_no_product_template_menu/__manifest__.py create mode 100644 pos_no_product_template_menu/pos_view.xml diff --git a/mrp_no_product_template_menu/__manifest__.py b/mrp_no_product_template_menu/__manifest__.py index 8353d1e..0cd26aa 100644 --- a/mrp_no_product_template_menu/__manifest__.py +++ b/mrp_no_product_template_menu/__manifest__.py @@ -3,19 +3,22 @@ { 'name': 'MRP No Product Template Menu', - 'version': '10.0.1.0.0', + 'version': '12.0.1.0.0', 'category': 'Manufacturing', 'license': 'AGPL-3', - 'summary': "Replace product.template menu entries by product.product menu entries", + 'summary': "Replace product.template menu entries by product.product menu", '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 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 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 . +This module has been written by Alexis de Lattre +from Akretion . """, 'author': 'Akretion', 'website': 'http://www.akretion.com', diff --git a/pos_no_product_template_menu/__init__.py b/pos_no_product_template_menu/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pos_no_product_template_menu/__manifest__.py b/pos_no_product_template_menu/__manifest__.py new file mode 100644 index 0000000..e7ddd60 --- /dev/null +++ b/pos_no_product_template_menu/__manifest__.py @@ -0,0 +1,28 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'POS No Product Template Menu', + 'version': '12.0.1.0.0', + 'category': 'Point of sale', + 'license': 'AGPL-3', + 'summary': "Replace product.template menu entries by product.product menu", + 'description': """ +POS No Product Template +======================= + +This module replaces the menu entry for product.template by menu entries +for product.product in the *Point Of Sale > Product* 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 David Béal +from Akretion . + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['point_of_sale', 'sale_purchase_no_product_template_menu'], + 'auto_install': True, + 'data': ['pos_view.xml'], + 'installable': True, +} diff --git a/pos_no_product_template_menu/pos_view.xml b/pos_no_product_template_menu/pos_view.xml new file mode 100644 index 0000000..2b9b78a --- /dev/null +++ b/pos_no_product_template_menu/pos_view.xml @@ -0,0 +1,16 @@ + + + + + + Products + product.product + tree,form,kanban + {'default_available_in_pos': True, 'search_default_filter_to_availabe_pos': 1} + + + + + + +