39 lines
1.3 KiB
XML
39 lines
1.3 KiB
XML
<?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.product_menu_catalog"
|
|
action="product_pricelist_item_action"
|
|
groups="product.group_pricelist_item"
|
|
sequence="50"/>
|
|
|
|
|
|
<record id="product_pricelist_view" model="ir.ui.view">
|
|
<field name="model">product.pricelist</field>
|
|
<field name="inherit_id" ref="product.product_pricelist_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@groups='product.group_pricelist_item']" position="attributes">
|
|
<div name="groups">product.group_pricelist_item,base_usability.group_nobody</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
</odoo>
|