콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
15755 화면

Hi everyone, I'm working with openerp 7.I'm developping a module who is inherite from the human resources.I wan't to delete the menu item "Département" in the module human resources and i don't know how to do it thank's for help

아바타
취소
베스트 답변

In an XML file:

<delete model="ir.ui.menu" id="hr.menu_hr_department_tree" />

You can find the name for any Menu under Settings --> User Interface --> Menu Items and, in Developer Mode, open the menu form view and select View Log from the Debug Menu.

The part of the XML ID to the right of the period is what you want to search for.

아바타
취소
작성자

i tried but it does'nt work;i added this line and it's ok: <delete model="ir.ui.menu" id="hr.menu_hr_department_tree" />

Thanks. I updated my answer to reflect the correction of my mistake.

작성자 베스트 답변

hi,we shoould add this line in the inherite view : <delete model="ir.ui.menu" id="hr.menu_hr_department_tree"/>

아바타
취소
베스트 답변

how can hide a menu for one group specific user?

i like to hide a menu for one group specifity, but when i apply delete this remove all menu for all users, but i want to hide for one groups. explain: i inherit a groups to user from warehouse, but this specifity users i dont want to show menu stock out.

for example i create a new groups users. i define in MY_module_folder/security/my_security.xml

<?xml version="1.0" encoding="utf-8"?>
<openerp>
 <data noupdate="0">
    <record id="group_stock_manager_moseltex" model="res.groups">
        <field name="name">Almacen_mosel Encargado</field>
       <field name="implied_ids" eval="[(4, ref('stock.group_stock_manager'))]"/>
    </record>
 </data>
</openerp>

but i want to hide a menu stock out (this code put inside the my_security.xml).

 <record model="ir.ui.menu" id="menu_action_picking_tree">
 <field name="groups_id"  eval="[ref('group_stock_manager_moseltex')]" />

but this is dont work.

아바타
취소