I cannot open my POS and getting this error:
AttributeError: ‘ProductBundleItem’ object has no attribute ‘stock_qty’
App Versions
{
"education": "0.0.1",
"erpnext": "14.21.0",
"erpnext_marketplace": "0.0.1",
"frappe": "14.32.0",
"hrms": "14.2.1",
"payments": "0.0.1"
}
Route
point-of-sale
Trackeback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 66, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 54, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 45, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1607, in call
return fn(*args, **newargs)
File "apps/erpnext/erpnext/selling/page/point_of_sale/point_of_sale.py", line 165, in get_items
item_stock_qty, is_stock_item = get_stock_availability(item_code, warehouse)
File "apps/erpnext/erpnext/accounts/doctype/pos_invoice/pos_invoice.py", line 637, in get_stock_availability
return get_bundle_availability(item_code, warehouse), is_stock_item
File "apps/erpnext/erpnext/accounts/doctype/pos_invoice/pos_invoice.py", line 653, in get_bundle_availability
max_available_bundles = available_qty / item.stock_qty
AttributeError: 'ProductBundleItem' object has no attribute 'stock_qty'
Request Data
{
"type": "POST",
"args": {
"start": 0,
"page_length": 40,
"price_list": "Gojek",
"item_group": "All Item Groups",
"search_term": "",
"pos_profile": "Main"
},
"freeze": true,
"headers": {},
"error_handlers": {},
"url": "/api/method/erpnext.selling.page.point_of_sale.point_of_sale.get_items"
}
Response Data
{
"exception": "AttributeError: 'ProductBundleItem' object has no attribute 'stock_qty'"
}
The end result is none of my item loaded in the POS page.