diff --git a/sale_purchase_no_product_template_menu/__init__.py b/sale_purchase_no_product_template_menu/__init__.py new file mode 100644 index 0000000..40a96af --- /dev/null +++ b/sale_purchase_no_product_template_menu/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/sale_purchase_no_product_template_menu/__openerp__.py b/sale_purchase_no_product_template_menu/__openerp__.py new file mode 100644 index 0000000..4cc4069 --- /dev/null +++ b/sale_purchase_no_product_template_menu/__openerp__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Sale Purchase No Product Template Menu module for Odoo +# Copyright (C) 2015 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + + +{ + 'name': 'Sale Purchase No Product Template Menu', + 'version': '0.1', + 'category': 'Sale and Purchase', + 'license': 'AGPL-3', + 'summary': "Use only if you don't use variants of products", + 'description': """ +Sale Purchase No Product Template +================================= + +You may use this module only if you don't use product variants i.e. you don't have (and don't plan to have in the future) several product.product attached to one product.template. + +This module replaces the menu entries for product.template by menu entries for product.product in the *Sales*, *Purchases* and *Warehouse* menu entry. + +This module has been written by Alexis de Lattre from Akretion . + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['purchase', 'sale'], + 'data': ['view.xml'], + 'installable': True, +} diff --git a/sale_purchase_no_product_template_menu/view.xml b/sale_purchase_no_product_template_menu/view.xml new file mode 100644 index 0000000..adfe07b --- /dev/null +++ b/sale_purchase_no_product_template_menu/view.xml @@ -0,0 +1,47 @@ + + + + + + + + + Products + product.product + tree,form,kanban + {"search_default_filter_to_purchase":1} + + + + + + + + + + + + + + + + Products + + + + + + tree,form,kanban + + + + + + + + +