Skip to Content
Menu
This question has been flagged
2 Replies
5968 Views

hi 

i made new users by names "Sale" and another "purchase" that works seperately .user that work in sales app must not access to data that in purchase add like vendor information and price that receive from vendor.how to restrict any sale user.

i install new module that help to make RFQ from sale order , in this app when i make purchase order ask me to inter Vendor name,i as sale user by configuration that restricted in user panel cant make purchase order because sale user cant access purchase.

any body can help me

Avatar
Discard

In below article see

1- Groups and Access Rights

2- Server Action

https://github.com/sehrishnaz/learnopenerp/wiki

Author Best Answer

I find this answer in forum and copy below .this work for me

step 1: go to developer mode 

step2:in "users and companies" menu open groups and create one group in same name:"Administration / sales own contact " and add your custom sales users to this group and create one rule by "custom name" and this text rule "['|',('user_id','=',user.id),('user_id','=',False)]" and add your custom sale user to this group.

step3:in "users and companies" menu create new group of all users and add "res.partner.rule.private.employee" to this group. attention to that ,you must add all internal users to this group without sale user. 

step 4:in technical menu open records rule and search for this "res.partner.rule.private.employee" and remove "User types/internal user" group from groups list.now you must have only one new rule by "custom name" that created in step 2.

Avatar
Discard

Please Sir, I want to Create two work centers like work center A and work center B where the workers in a particular work center will have access to document that concerns their work center only for example workers in center A will have access to the documents that relates to work center A.