Rapid (partial ?) port of product_manager_group and sale_purchase_no_product_template_menu to v10
pos_no_product_template_menu is useless in v10 -> remove it
This commit is contained in:
committed by
David Beal
parent
120a1b8c16
commit
eab4cdf17f
@@ -1,25 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# Sale Purchase No Product Template Menu module for Odoo
|
||||
# Copyright (C) 2015 Akretion (http://www.akretion.com)
|
||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
#
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
# © 2015-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
{
|
||||
'name': 'Sale Purchase No Product Template Menu',
|
||||
@@ -39,7 +20,11 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
||||
""",
|
||||
'author': 'Akretion',
|
||||
'website': 'http://www.akretion.com',
|
||||
'depends': ['purchase', 'sale', 'base_usability'],
|
||||
'depends': [
|
||||
'purchase',
|
||||
'sale',
|
||||
#'base_usability',
|
||||
],
|
||||
'data': ['view.xml'],
|
||||
'installable': False,
|
||||
'installable': True,
|
||||
}
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
<openerp>
|
||||
<data>
|
||||
<odoo>
|
||||
|
||||
<!-- PURCHASE -->
|
||||
<record id="product_product_action_puchased" model="ir.actions.act_window">
|
||||
@@ -22,7 +21,7 @@
|
||||
</record>
|
||||
|
||||
<!-- STOCK -->
|
||||
<record id="stock.menu_stock_products_menu" model="ir.ui.menu">
|
||||
<record id="stock.menu_product_variant_config_stock" model="ir.ui.menu">
|
||||
<field name="action" ref="product.product_normal_action"/>
|
||||
</record>
|
||||
|
||||
@@ -42,7 +41,7 @@ so I redefine a new menu entry -->
|
||||
|
||||
<!-- To keep good translations, we re-use the product.template menu
|
||||
entry and link it to product product -->
|
||||
<record id="product.menu_product_template_action" model="ir.ui.menu">
|
||||
<record id="sale.menu_product_template_action" model="ir.ui.menu">
|
||||
<!-- related action is "product.product_template_action" -->
|
||||
<field name="action" ref="product_product_action_sell"/>
|
||||
</record>
|
||||
@@ -56,7 +55,7 @@ entry and link it to product product -->
|
||||
|
||||
<!-- Create a product template menu entry in configuration -->
|
||||
<menuitem id="sale_config_product_template_menu" action="product.product_template_action"
|
||||
parent="product.prod_config_main"/>
|
||||
parent="sale.prod_config_main"/>
|
||||
|
||||
|
||||
<record id="product.product_normal_action_sell" model="ir.actions.act_window">
|
||||
@@ -64,11 +63,14 @@ entry and link it to product product -->
|
||||
</record>
|
||||
|
||||
<!-- Hide native 'Product Variants' menu -->
|
||||
<!--
|
||||
<record id="product.menu_products" model="ir.ui.menu">
|
||||
<field name="groups_id" eval="[(6, 0, [ref('base_usability.group_nobody')])]"/>
|
||||
</record>
|
||||
-->
|
||||
|
||||
<!-- set name as editable on product.product form -->
|
||||
<!--
|
||||
<record id="product_normal_form_view" model="ir.ui.view">
|
||||
<field name="name">no_product_template_menu.product_product_form</field>
|
||||
<field name="model">product.product</field>
|
||||
@@ -82,6 +84,6 @@ entry and link it to product product -->
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
-->
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user