Add menu entry on product.pricelist.item
This commit is contained in:
@@ -25,6 +25,7 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
|
|||||||
'depends': ['sale'],
|
'depends': ['sale'],
|
||||||
'data': [
|
'data': [
|
||||||
'sale_view.xml',
|
'sale_view.xml',
|
||||||
|
'product_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
26
sale_usability/product_view.xml
Normal file
26
sale_usability/product_view.xml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
© 2017 Akretion (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>
|
||||||
|
|
||||||
|
<!-- This is in the sale_usability module instead of the product_usability module
|
||||||
|
because the parent menu entry is in the sale module -->
|
||||||
|
<record id="product_pricelist_item_action" model="ir.actions.act_window">
|
||||||
|
<field name="name">Pricelist Items</field>
|
||||||
|
<field name="res_model">product.pricelist.item</field>
|
||||||
|
<field name="view_mode">tree,form</field>
|
||||||
|
<field name="context">{'product_pricelist_item_main_view': True}</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<!-- This menu entry is very useful for mass export/import of prices -->
|
||||||
|
<menuitem id="product_pricelist_item_menu"
|
||||||
|
parent="sale.menu_product_pricelist_main"
|
||||||
|
action="product_pricelist_item_action"
|
||||||
|
sequence="50"/>
|
||||||
|
|
||||||
|
|
||||||
|
</odoo>
|
||||||
Reference in New Issue
Block a user