As per group definition, I think this tab should be visible only to logged-in user so that he can view his information. Why logged-in user is able to see information of other users as well.??? Can anyone please explain or suggest me any solution??

Update : Because two employees belong to the same group so they can see the infomation. Can anyone please answer my flowing questions :

1) How employee can see his own one field say: blood_group but not of other employee.

2) I am having two tabs : Public Information and Family Details. Logged-in employee should see his information under both these tabs and when he checks other's profile only Public Information tab should be visible

Hi ya, thanks for sending link, it was really tough to find out in Mail, for which question to answer back...

Well coming to your question, I agree with Piyush...

Q1: you want to hide a field "blood_group" for certain users and show to other users, but since both the users belonging to same group, you cannot achieve it...

Alternate solution: add a new group say "group_blood_details" on the column "blood_group", and then this group will be a Additional group for the user you want to give access ..

Q2: Is a interesting requirement, but i believe this you cant achieve neither using groups nor security rules..

Alternate solution: add a functional field [store is False] which evalutes and returns whether the user has to see it or not, say it returns True or False [boolean value].. then in xml for the tab [Family Details]using attrs set invisible property based on the functional field...

Hi Deep, thank you so much for replying back.
Solution 1: Again both user will be related to same group so I think it will create the same situation
Solution 2 : This one looks good. Let me work on that and will surely inform you as proceed.

Say you would have had a group say "xxx" which you would have assigned to both user 1 & user 2..... now create one more new group say "YYY" and now you have to assign this group only one user who wants to see it, say user 1...

Hi Deep, thank you so much for replying back.
Solution 1: Again both user will be related to same group so I think it will create the same situation
Solution 2 : Much thanks Deep....Second solution really works..Thanks again.

I want user to access their subordinate details as well and for that record rules are already written...They are working fine but the concern is i want to hide one tab out of 4 tabs on condition basis....

Much thanks Piyush....Your solution is good but not what i want....I am already hacing groups so want to set just groups = "group_name" attribute and it should behave as expected....You can check hr module this functionality is already working I just want to check why it's not working for group_users....

i think group_users group for all employee, its basic group for employee, if person is employee then he have a 'group_user' rights. so, logged In user can see all record's 'Family Details' Tab. because he have a rights of group ' group_user',

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