Add menu entry on product.pricelist.item

This commit is contained in:
Alexis de Lattre
2017-01-10 17:51:15 +01:00
parent da93011a07
commit 1c523cfdcb
2 changed files with 27 additions and 0 deletions

View File

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

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