Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
5 Odpowiedzi
13418 Widoki

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


Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć
Najlepsza odpowiedź

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_ 



 

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

"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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
paź 23
3010
2
sty 23
26503
4
gru 21
33117
4
paź 21
21135
4
cze 21
39556