Se rendre au contenu
Menu
Cette question a été signalée
5 Réponses
13217 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

"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
Ignorer
Publications associées Réponses Vues Activité
0
oct. 23
2921
2
janv. 23
26219
4
déc. 21
32792
4
oct. 21
21024
4
juin 21
39387