Hi all, I have been trying to override the left menu item "Quotations" in the Purchases Module (making domain changes) and am having touble. I copied the code and inherited, but instead of overriding the menu item it creates a new menu item. Is there a way to just override it instead? This is what my code looks like currently:
<record id="purchase_rfq" model="ir.actions.act_window">
<field name="name">Quotations</field>
<field name="type">ir.actions.act_window</field>
<field name="inherit_id" ref="purchase.purchase_order_tree"/>
<field name="res_model">purchase.order</field>
<field name="context">{}</field>
<field name="domain">[('state','in',('draft','sent','confirmed')),('origin','=','')]</field>
<field name="view_mode">tree,form,graph,calendar</field>
<field name="search_view_id" ref="purchase.view_purchase_order_filter"/>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a request for quotation.
</p><p>
The quotation contains the history of the discussion/negociation
you had with your supplier. Once confirmed, a request for
quotation is converted into a purchase order.
</p><p>
Most propositions of purchase orders are created automatically
by OpenERP based on inventory needs.
</p>
</field>
</record>
<menuitem action="purchase_rfq" id="menu_purchase_rfq"
parent="purchase.menu_procurement_management"
sequence="1"/>
Thanks Janeesh, your answer was very helpful. I had to change the menuitem action to purchase.purchase_rfq as well - but I understand inheritance in these situations better now.