İçereği Atla
Menü
Bu soru işaretlendi
5 Cevaplar
12887 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

"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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Eki 23
2785
2
Oca 23
25795
4
Ara 21
32280
4
Eki 21
20895
4
Haz 21
39065