Item rename , merge with existing

Hi,

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/app.py”, line 51, in application
response = frappe.handler.handle()
File “/home/myme/frappe-bench/apps/frappe/frappe/handler.py”, line 69, in handle
execute_cmd(cmd)
File “/home/myme/frappe-bench/apps/frappe/frappe/handler.py”, line 92, in execute_cmd
ret = frappe.call(method, frappe.form_dict)
File “/home/myme/frappe-bench/apps/frappe/frappe/init.py”, line 751, in call
return fn(*args, newargs)
File “/home/myme/frappe-bench/apps/frappe/frappe/desk/query_report.py”, 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/stock_balance.py”, line 21, in execute
data.append([item, item_map[item][“item_name”],
KeyError: u’9ree145.22.15.0’

please fix this

thanks

Can you post this on GitHub? Also check if you can replicate it on demo.erpnext.com