This question has been flagged
1 Reply
5178 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

Avatar
Discard
Best Answer

Add this line to your xml file:

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

Avatar
Discard
Author

Works.Thanks!