Sales Invoice not allowed to be renamed


I am running into this issue “Sales Invoice not allowed to be renamed” everytime I load out an invoice or inserting a new invoice… I am using the cloud version of erpnext.

Please advice.

Please provide more details.
What is the current value and what do you want to rename it to.

In general, you can rename a document in the following way.

  • Open the document
  • Double click the title
  • Enter a new title in the popup form that is displayed
  • If the menu button on the right hand side says “Update”, click the button to store the new value


I am not trying to rename it. But everything I load up an Invoice or input a Invoice the message this just pop up.


Below is a video showing it.


Any update on this?



You have written a custom script for sales invoice.

The refresh function is called when the sales invoice is loaded.

The refresh function is also called for the submitted documents which are not allowed to be renamed.

As a workaround, you can use naming series.

To fix the issue, either remove the custom script or fix it.

In case the issue still persists, contact us at

1 Like