Menghapus menu dapat dilakukan dengan mudah di GUI melalui : Administration > Security > Grant Access To Menu. Adakalanya menghapus menu kita terapkan pada XML caranya :

<?xml version=”1.0″ encoding=”utf-8″?>
<openerp>

<data>

<delete model=”ir.ui.menu” search=”[(‘name’, ‘=’, ‘Partners’)]” />
<delete model=”ir.ui.menu” search=”[(‘name’, ‘=’, ‘Contacts’)]” />
<delete model=”ir.ui.menu” search=”[(‘name’, ‘=’, ‘Addresses’)]” />
<delete model=”ir.ui.menu” search=”[(‘name’, ‘=’, ‘Contact\’s Jobs’)]” />

</data>

</openerp>

Note :

  • Update pada __terp__
  • Table pada database : ir_ui_menu

Contoh Penggunaan Lainnya : 

<delete model=”ir.model.data” search=”[(‘name’,’=’,’menu_product_uom_form_action’)]” />
<delete model=”ir.model.data” search=”[(‘name’,’=’,’menu_product_uom_categ_form_action’)]” />
<delete model=”ir.model.data” search=”[(‘name’,’=’,’next_id_16′)]” />
<delete model=”ir.ui.menu” search=”[(‘name’,’=’,’Units of Measure Categories’)]” />
<delete model=”ir.ui.menu” search=”[(‘name’,’=’,’Units of Measure’)]” />

<delete model=”ir.actions.wizard” search=”[(‘wiz_name’,’=’,’res.partner.sms_send’)]” />
<delete model=”ir.actions.wizard” search=”[(‘wiz_name’,’=’,’res.partner.spam_send’)]” />
<delete model=”ir.actions.act_window” search=”[(‘name’,’=’,’Company Architecture’)]” />
<delete model=”ir.actions.report.xml” search=”[(‘name’,’=’,’Overdue Payments’)]” />

LIST MODEL

  1. ir.actions.report.custom
  2. ir.actions.report.xml (Report)
  3. ir.actions.act_windows (Window Action)
  4. ir.actions.wizard (Wizard)
  5. ir.actions.url
  6. ir.actions.server
  7.  ir.ui.menu (Menu sebelah kiri)