ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

Error While scanning barcode in v11 (online-pos)

bug

#1

The following error comes up when trying to scan via barcode field ,

here is the stack trace,

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 61, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1007, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/selling/page/point_of_sale/point_of_sale.py”, line 27, in get_items
item_code = data.get(“item_code”) if data.get(“item_code”) else search_value
AttributeError: ‘NoneType’ object has no attribute ‘get’

Thanks,