Odoo Help

1

How to remove default shortcut?

By
youring
on 3/15/13, 2:25 AM 1,946 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
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

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

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