Item rename , merge with existing


i wonder this is a bug…
the rename has merge with existing but when i do that with item that have transaction … it will cause an error , for example
Traceback (innermost last):
File “/home/myme/frappe-bench/apps/frappe/frappe/”, line 51, in application
response = frappe.handler.handle()
File “/home/myme/frappe-bench/apps/frappe/frappe/”, line 69, in handle
File “/home/myme/frappe-bench/apps/frappe/frappe/”, line 92, in execute_cmd
ret =, frappe.form_dict)
File “/home/myme/frappe-bench/apps/frappe/frappe/”, line 751, in call
return fn(*args, newargs)
File “/home/myme/frappe-bench/apps/frappe/frappe/desk/”, line 87, in run
columns, result = frappe.get_attr(method_name)(frappe._dict(filters))
File “/home/myme/frappe-bench/apps/erpnext/erpnext/stock/report/stock_balance/”, line 21, in execute
data.append([item, item_map[item][“item_name”],
KeyError: u’9ree145.22.15.0’

please fix this


Can you post this on GitHub? Also check if you can replicate it on