Add module stock_no_product_template_menu

This commit is contained in:
Alexis de Lattre
2019-09-30 22:44:05 +02:00
parent 33f67279fb
commit 92a4b0d6ac
5 changed files with 43 additions and 6 deletions

View File

@@ -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.

View File

@@ -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,

View 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,
}

View 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>