Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to limit access rights to particular menu items ?

By
nishad
on 8/19/13, 6:50 AM 3,557 views

Situation : - I want to restrict the access of Lead & Opportunities menu based on the potential users of the system. Consider a system with 10 users , out of which only 6 users should be able to view only Leads menu and remaining 4 users should be able to view only Opportunities menu.

Current system allow a user to access both Leads/Opportunity for Groups / Sales / User: Own Leads Only
and its Rule is as follows ['|',('user_id','=',user.id),('user_id','=',False)], but it doesn't serve my need of hiding menu's.

Can anyone suggest a way to re-define the rule for restricting the access rights of a way to hide/disable menu's based on the user.?? Any help is appreciated ..... Thanks in advance ....

0
wilson zauma
On 3/13/14, 8:00 PM

i like to hide a menu for one group specifity, but when i apply delete this remove all menu for all users, but i want to hide for one groups. explain: i inherit a groups to user from warehouse, but this specifity users i dont want to show menu stock out.

for example i create a new groups users. i define in MY_module_folder/security/my_security.xml

<?xml version="1.0" encoding="utf-8"?>
<openerp>
 <data noupdate="0">
    <record id="group_stock_manager_moseltex" model="res.groups">
        <field name="name">Almacen_mosel Encargado</field>
       <field name="implied_ids" eval="[(4, ref('stock.group_stock_manager'))]"/>
    </record>
 </data>
</openerp>

but i want to hide a menu stock out (this code put inside the my_security.xml).

 <record model="ir.ui.menu" id="menu_action_picking_tree">
 <field name="groups_id"  eval="[ref('group_stock_manager_moseltex')]" />

but this is dont work.

0
joseph d'souza
On 8/19/13, 6:54 AM

Yes, You can create groups for that and assign users on that group. Now on your menu assign groups so only users of that group can see that menu.

Thank You!

Hope this helps you. :)

0
vimal j
On 3/14/14, 3:58 AM

create 2 new groups. In one group go to menu section and add menu sales/lead. Repeat the same for another group for opportunities( i.e add sales/opportunities).

While creating users just click on the checkbox for particular group name in users->access rights. So that user will have access to that particular group and hence he can view that menu while others cannot.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/19/13, 6:50 AM
Seen: 3557 times
Last updated: 6/23/15, 4:28 PM