Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How to remove default shortcut?

By
youring
on 3/15/13, 2:25 AM 1,515 views

I find default shortcut defined in the following views

  1. \addons\base\res\res_partner_shortcut_data.xml
  2. \addons\crm\crm_meeting_shortcut_data.xml
  3. \addons\product\product_shortcut_data.xml
  4. \addons\hr\hr_view.xml

For example:

<record id="ir_ui_view_sc_partner0" model="ir.ui.view_sc">
    <field name="name">Customers</field>
    <field name="resource">ir.ui.menu</field>
    <field name="user_id" ref="base.user_root"/>
     <field name="res_id" ref="menu_partner_form"/>
</record

How to inherit the view to remove(replace method) the shortcut? I don't want to mod the source

2

saad

--saad--
1008
| 5 4 8
Casablanca, Morocco
--saad--
saad
On 3/15/13, 6:03 AM

Add this line to your xml file:

<delete model="ir.ui.view_sc" search="[('name','=','Customers')]"/>

Works.Thanks!

youring
on 3/16/13, 12:14 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 3/15/13, 2:25 AM
Seen: 1515 times
Last updated: 3/16/15, 8:10 AM