V14 - Work Order - Pick List not working

App Versions

{
	"chat": "0.0.1",
	"erpnext": "14.20.0",
	"frappe": "14.30.0",
	"hrms": "14.2.0",
	"india_compliance": "14.5.1",
	
}

Route

Form/Work Order/WO/2304/00001

Traceback

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/manufacturing/doctype/work_order/work_order.py", line 1474, in create_pick_list
    doc.set_item_locations()
  File "apps/erpnext/erpnext/stock/doctype/pick_list/pick_list.py", line 210, in set_item_locations
    locations = get_items_with_location_and_quantity(
  File "apps/erpnext/erpnext/stock/doctype/pick_list/pick_list.py", line 462, in get_items_with_location_and_quantity
    while remaining_stock_qty > 0 and available_locations:
TypeError: '>' not supported between instances of 'NoneType' and 'int'

Request Data

{
	"type": "POST",
	"args": {
		"source_name": "WO/2304/00001",
		"for_qty": 0
	},
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/erpnext.manufacturing.doctype.work_order.work_order.create_pick_list"
}

Response Data

{
	"exception": "TypeError: '>' not supported between instances of 'NoneType' and 'int'"
}