Add module stock_no_product_template_menu
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
Sale Purchase No Product Template
|
Sale Purchase No 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. With this module, the only menu entry for product.template is in the menu *Sales > Configuration > Product Categories and Attributes*.
|
This module replaces the menu entries for product.template by menu entries for product.product in the *Sales* and *Purchases* menu entries. With this module, the only menu entry for product.template is in the menu *Sales > Configuration > Product Categories and Attributes*.
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
|
|||||||
@@ -21,11 +21,6 @@
|
|||||||
<field name="action" ref="product_product_action_purchased"/>
|
<field name="action" ref="product_product_action_purchased"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<!-- STOCK -->
|
|
||||||
<record id="stock.menu_product_variant_config_stock" model="ir.ui.menu">
|
|
||||||
<field name="action" ref="product.product_normal_action"/>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<!-- SALE -->
|
<!-- SALE -->
|
||||||
<!-- I'd prefer to inherit product.product_normal_action_sell and
|
<!-- I'd prefer to inherit product.product_normal_action_sell and
|
||||||
change the "name" field, but it doesn't work with translation,
|
change the "name" field, but it doesn't work with translation,
|
||||||
|
|||||||
0
stock_no_product_template_menu/__init__.py
Normal file
0
stock_no_product_template_menu/__init__.py
Normal file
26
stock_no_product_template_menu/__manifest__.py
Normal file
26
stock_no_product_template_menu/__manifest__.py
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# Copyright 2019 Akretion France (http://www.akretion.com/)
|
||||||
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': 'Stock No Product Template Menu',
|
||||||
|
'version': '12.0.1.0.0',
|
||||||
|
'category': 'Stock',
|
||||||
|
'license': 'AGPL-3',
|
||||||
|
'summary': "Replace product.template menu entries by product.product menu entries",
|
||||||
|
'description': """
|
||||||
|
Stock No Product Template
|
||||||
|
=========================
|
||||||
|
|
||||||
|
This module replaces the menu entries for product.template by menu entries for product.product in the *Inventory* menu entry. With this module, the only menu entry for product.template is in the menu *Sales > Configuration > Product Categories and Attributes*.
|
||||||
|
|
||||||
|
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': ['stock'],
|
||||||
|
'data': ['view.xml'],
|
||||||
|
'installable': True,
|
||||||
|
}
|
||||||
16
stock_no_product_template_menu/view.xml
Normal file
16
stock_no_product_template_menu/view.xml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright 2015-2019 Akretion France (http://www.akretion.com/)
|
||||||
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
-->
|
||||||
|
|
||||||
|
<odoo>
|
||||||
|
|
||||||
|
<!-- STOCK -->
|
||||||
|
<record id="stock.menu_product_variant_config_stock" model="ir.ui.menu">
|
||||||
|
<field name="action" ref="product.product_normal_action"/>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
|
||||||
|
</odoo>
|
||||||
Reference in New Issue
Block a user