Ir al contenido
Menú
Se marcó esta pregunta
5 Respuestas
12875 Vistas

I want to remove Customer menu from the Sales Module. So What I have done is that I created a Group named hidden group & am assigning it to Customer menu to hide it.. So My code is like this:-
Here I want to find the parent value and id value of the menu.. So If I  give it here only I can hide it. So how can I find it from Odoo?

<record model="res.groups" id="group_invisible">
            <field name="name">Hidden items</field>
        </record>

        <menuitem id="module_name.menuitem_id" parent="base.menu_sales" sequence="1" groups="group_invisible"/>


Avatar
Descartar
Mejor respuesta

To find the parent of the menu, go to Settings > Technical > User Interface > Menu Items 

Eg. Search for CRM and click on it.

On the debug mode use click on View Meta Data

If you want to add it to the root menu use the crm.crm_menu_root given in XML ID

Else, if you want add under Submenu, example Configuration section

Go to 

Settings > Technical > Sequences & Identifiers > External Identifiers

search crm_menu, click on your submenu and get it's address in the External Identifier, add it in parent field


Avatar
Descartar
Mejor respuesta

I don't know if this is what you need, but for the list of the base. ( menus ) you can use this...

On Settings -> Sequences & Identifiers -> External Identifiers in your Odoo Database you can look for items that start with menu_ 



 

Avatar
Descartar
Mejor respuesta

why don't you just go to Configuration---> user interface ----> Meu Items ,

then search for clients menu

then in security settings(Groups Tab) , add your cuistom groups that you want client's menu visible for them.

i know if you delete the database you'll have to repeat this , but i think it's not a big problem or a time taking

PS: make sure the admin has the Techical access rights

Avatar
Descartar
Mejor respuesta

Excellent choices for solving the problem in this post:

https://www.odoo.com/es_ES/forum/ayuda-1/question/how-to-find-the-id-of-a-menuitem-103802

Avatar
Descartar
Mejor respuesta

"I want to remove Customer menu from the Sales Module."  <-- use delete 

https://www.odoo.com/forum/help-1/question/deleting-a-menu-item-in-an-inheritance-view-14495

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
oct 23
2780
2
ene 23
25768
4
dic 21
32271
4
oct 21
20895
4
jun 21
39034