Unable to restrict Item group in POS profile

TypeError: get_items() missing 1 required positional argument: ‘item_group’

When I’m trying to restrict any user to a specific company and group item that is working fine but on the POS screen it is showing a permission error. Is there no way to restrict users to specific item groups for the POS screen? I have also tried to do this from the POS profile, but the error is still the same.

Please help.

Kind Regards,
Saad