TypeError: get_items() missing 1 required positional argument: 'item_group'. (Upon opening POS in v12)

Hi folks,
Hope you are doing great!

Whenever I open POS, I get a server error pop up message saying “TypeError: get_hooks() missing 1 required positional argument: ‘hook’”.

I am sharing my traceback for the error from browser console.

Traceback (most recent call last):
  File "/home/user/erpnext/apps/frappe/frappe/app.py", line 60, in application
    response = frappe.api.handle()
  File "/home/user/erpnext/apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "/home/user/erpnext/apps/frappe/frappe/handler.py", line 22, in handle
    data = execute_cmd(cmd)
  File "/home/user/erpnext/apps/frappe/frappe/handler.py", line 61, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/user/erpnext/apps/frappe/frappe/__init__.py", line 1042, in call
    return fn(*args, **newargs)
TypeError: get_items() missing 1 required positional argument: 'item_group'.

Any Help is deeply appreciated.
Thank you in advance!!!

It is like you set permission on the item group.Remove the permission and you will have the problem resolved

so, what’s wrong with the permission?
item group tree

A-
 |--B
   |---b1
   |-----b11
   |-----b12
 |--C
   |----c1
   |----c2

I set the user permission to be limited to b1, and on the POS profile we set item category to b1

and same error occurred, i believe this is a bug… isn’t it ?

1 Like

any help here for this ?