Bug: Renaming on Chart of Accounts allows for duplicate account numbers

If you directly rename an account on the Chart of Accounts doctype (instead of going through the edit pop-up) this updates the relevant fields in the Account doctype. However, there does not appear to be any validation when updating the account number, which lets you create duplicates. Can this please be fixed?

image

image

image

This works fine in my test account.

On creating new account.

On renaming existing one.

On which version are you running your ERPNext account?

ERPNext version 10.1.5
Frappe version 10.1.2

It looks like you’re renaming in the edit screen. Have you tried renaming in the Chart of Accounts tree?