Parent Item group wise user permission

Hello All

I have several parents item group under which there are several child item groups. Example :

Parent Item Group 1

  • Child Item group 1
  • Child Item group 2
  • Child Item group 3
  • Child Item group 4

Parent Item Group 2

  • Child Item group 1
  • Child Item group 2
  • Child Item group 3
  • Child Item group 4

Parent Item Group 3

I want to hide items under “Parent Item group 3” from some of the users . But there is no specific way to restrict an item group to users . What I can do is allow users to specific item groups . So I have tried restricting some users to “Parent Item 1” “Parent item 2” but the problem is restrict users to each and every individual child item groups which is a big hassle .

Is there any way to restrict users to only parent item groups so child item groups get restriction automatically ? Or is there any way to hide specific item group from some users ?

Thanks

Hello,

Sorry as this feature is not available for now. If Github Issue is not found for this feature suggestion, request you to create new one.

If there are many Item Groups, you can consider creating User Permissions using Data Import Tool as well.

@inventobd

You can do this by using Roles Permission Manager and User Permission Manager
http://frappe.github.io/erpnext/user/manual/en/setting-up/users-and-permissions/

You need to apply “Apply User Permissions” for DocType Item Group.
So user can see Item only if Item Group is permitted

Also need to restrict Item Group using User Permissions Manager

Let me know if you find any issue. This solution work for us.

Thanks a lot for your answer . I have created a github issue for this : Parent Item group wise user permission · Issue #14775 · frappe/frappe · GitHub

Hello Man

Thanks a lot for your answer. I have already done that but the problem is I need to specifically restrict users from all child item groups and have several child item groups . I was looking for an easy way so I can only restrict only parent item group and all child item group get restricted as well.

Thanks

Hello,

Please create new Github Issue for this feature suggestion. If one exist already, please followup via that issue.

If you have already developed this feature, will be great if you can contribute it by sending pull request.