Enable rename for sales invoice

how to add edit of enable rename for sales invoice in custom app ?

Please elaborate on your question what do you want to do?

Doc renaming can be enabled in the doctype, “allow rename” checkbox.

@Void_Moon then reset the change in doctype when update the apps