Autoname hook on Sales Invoice not working

You can also use the autoname function in the sales_invoice.py file. This should do the trick.

def autoname(self):
	self.name = self.my_order_no