[MIG] rp_no_product_template_menu to v14

Add comment in stock_no_product_template_menu
This commit is contained in:
Alexis de Lattre
2024-03-14 17:29:39 +01:00
parent 4774b879fa
commit 763928c286
3 changed files with 13 additions and 13 deletions

View File

@@ -4,7 +4,7 @@
{ {
'name': 'MRP No Product Template Menu', 'name': 'MRP No Product Template Menu',
'version': '12.0.1.0.0', 'version': '14.0.1.0.0',
'category': 'Manufacturing', 'category': 'Manufacturing',
'license': 'AGPL-3', 'license': 'AGPL-3',
'summary': "Replace product.template menu entries by product.product menu", 'summary': "Replace product.template menu entries by product.product menu",
@@ -22,9 +22,9 @@ This module has been written by Alexis de Lattre
from Akretion <alexis.delattre@akretion.com>. from Akretion <alexis.delattre@akretion.com>.
""", """,
'author': 'Akretion', 'author': 'Akretion',
'website': 'http://www.akretion.com', 'website': 'https://github.com/akretion/odoo-usability',
'depends': ['mrp', 'sale_purchase_no_product_template_menu'], 'depends': ['mrp', 'sale_purchase_no_product_template_menu'],
'auto_install': True, 'auto_install': True,
'data': ['mrp_view.xml'], 'data': ['mrp_view.xml'],
'installable': False, 'installable': True,
} }

View File

@@ -1,21 +1,18 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
Copyright 2016-2019 Akretion France (http://www.akretion.com/) Copyright 2016-2024 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com> @author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
--> -->
<odoo> <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">{'search_default_consumable': 1, 'default_type': 'product'}</field>
</record>
<record id="mrp.menu_mrp_product_form" model="ir.ui.menu"> <record id="mrp.menu_mrp_product_form" model="ir.ui.menu">
<field name="action" ref="product_product_action_mrp"/> <field name="action" ref="product.product_normal_action"/>
</record> </record>
<!-- we don't care about:
"search_default_consumable": 1 => not useful
"default_type": 'product' : stock_usability make it the default... no need to bother
-->
</odoo> </odoo>

View File

@@ -11,6 +11,9 @@
<record id="stock.menu_product_variant_config_stock" model="ir.ui.menu"> <record id="stock.menu_product_variant_config_stock" model="ir.ui.menu">
<field name="action" ref="product.product_normal_action"/> <field name="action" ref="product.product_normal_action"/>
</record> </record>
<!-- we don't care about:
"search_default_consumable": 1 => not useful
"default_type": 'product' : stock_usability make it the default... no need to bother
-->
</odoo> </odoo>