Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
5 Răspunsuri
13428 Vizualizări

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"/>


Imagine profil
Abandonează
Cel mai bun răspuns

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


Imagine profil
Abandonează
Cel mai bun răspuns

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_ 



 

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

"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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
oct. 23
3014
2
ian. 23
26517
4
dec. 21
33127
4
oct. 21
21137
4
iun. 21
39559