ADD module pos_no_product_template_menu

This commit is contained in:
David Beal
2019-03-07 10:55:08 +01:00
parent 82bc47905b
commit e57122de31
4 changed files with 52 additions and 5 deletions

View File

@@ -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 <alexis.delattre@akretion.com>.
This module has been written by Alexis de Lattre
from Akretion <alexis.delattre@akretion.com>.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',

View File

View File

@@ -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 <david.beal@akretion.com>.
""",
'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,
}

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="product_product_action_mrp" model="ir.actions.act_window">
<field name="name">Products</field>
<field name="res_model">product.product</field>
<field name="view_mode">tree,form,kanban</field>
<field name="context">{'default_available_in_pos': True, 'search_default_filter_to_availabe_pos': 1}</field>
</record>
<record id="point_of_sale.menu_pos_products" model="ir.ui.menu">
<field name="action" ref="point_of_sale.product_product_action"/>
</record>
</odoo>